Replace deprecated Q3Layouts with Qt4 counterparts in the watch window.
[kdbg.git] / kdbg / watchwindow.h
blobeefe14e056d7dd5102ba0b7a97d3c9d05a888ac6
1 /*
2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
5 */
7 #ifndef WATCHWINDOW_H
8 #define WATCHWINDOW_H
10 #include <QLineEdit>
11 #include <QPushButton>
12 #include <QVBoxLayout>
13 #include <QHBoxLayout>
14 #include "exprwnd.h"
16 class WatchWindow : public QWidget
18 Q_OBJECT
19 public:
20 WatchWindow(QWidget* parent);
21 ~WatchWindow();
22 ExprWnd* watchVariables() { return &m_watchVariables; }
23 QString watchText() const { return m_watchEdit.text(); }
24 int columnWidth(int i) const { return m_watchVariables.columnWidth(i); }
25 void setColumnWidth(int i, int w) { m_watchVariables.setColumnWidth(i, w); }
27 protected:
28 QLineEdit m_watchEdit;
29 QPushButton m_watchAdd;
30 QPushButton m_watchDelete;
31 ExprWnd m_watchVariables;
32 QVBoxLayout m_watchV;
33 QHBoxLayout m_watchH;
35 virtual bool eventFilter(QObject* ob, QEvent* ev);
36 virtual void dragEnterEvent(QDragEnterEvent* event);
37 virtual void dropEvent(QDropEvent* event);
39 signals:
40 void addWatch();
41 void deleteWatch();
42 void textDropped(const QString& text);
44 protected slots:
45 void slotWatchHighlighted();
48 #endif // WATCHWINDOW_H