File indexing completed on 2024-05-12 16:39:58
0001 /* This file is part of the KDE project 0002 Copyright (C) 2004,2006 Jarosław Staniek <staniek@kde.org> 0003 0004 This program is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 Library General Public License for more details. 0013 0014 You should have received a copy of the GNU Library General Public License 0015 along with this program; see the file COPYING. If not, write to 0016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #ifndef KEXIUTILS_P_H 0021 #define KEXIUTILS_P_H 0022 0023 #include <QPointer> 0024 #include <QTimer> 0025 #include <QTreeWidget> 0026 0027 /*! @internal */ 0028 class DelayedCursorHandler : public QObject 0029 { 0030 Q_OBJECT 0031 public: 0032 DelayedCursorHandler(QWidget *widget = nullptr); 0033 void start(bool noDelay); 0034 void stop(); 0035 bool startedOrActive; //!< true if ounting started or the cursor is active 0036 protected Q_SLOTS: 0037 void show(); 0038 protected: 0039 QPointer<QWidget> m_widget; 0040 QTimer m_timer; 0041 bool m_handleWidget; //!< Needed because m_widget can disappear 0042 }; 0043 0044 /*! @internal KDb Debug Tree */ 0045 class KexiDBDebugTreeWidget : public QTreeWidget 0046 { 0047 Q_OBJECT 0048 public: 0049 explicit KexiDBDebugTreeWidget(QWidget *parent = 0); 0050 public Q_SLOTS: 0051 void copy(); 0052 }; 0053 0054 /*! @internal Debug window */ 0055 class DebugWindow : public QWidget 0056 { 0057 Q_OBJECT 0058 public: 0059 explicit DebugWindow(QWidget * parent = 0); 0060 }; 0061 0062 #endif