summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/variablechooser.h
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-06-20 00:34:41 +0200
committerhjk <hjk121@nokiamail.com>2014-06-27 12:27:36 +0200
commitc9029bf996e27e7f36d7755e6b71f73e242d87ee (patch)
treeb269073a7afb74c874657469fe38e8c716608e85 /src/plugins/coreplugin/variablechooser.h
parentae2de4564242da0e59eaddba06aa0b2697ba4c2b (diff)
downloadqt-creator-c9029bf996e27e7f36d7755e6b71f73e242d87ee.tar.gz
VariableChooser: Slim down header and implementation
Change-Id: Ia39c94c2e87717c23cb0d7466b68c922b033979b Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/coreplugin/variablechooser.h')
-rw-r--r--src/plugins/coreplugin/variablechooser.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/plugins/coreplugin/variablechooser.h b/src/plugins/coreplugin/variablechooser.h
index d8f76d8a14..726b077942 100644
--- a/src/plugins/coreplugin/variablechooser.h
+++ b/src/plugins/coreplugin/variablechooser.h
@@ -32,21 +32,11 @@
#include "core_global.h"
-#include <QPointer>
#include <QWidget>
-QT_BEGIN_NAMESPACE
-class QLineEdit;
-class QTextEdit;
-class QPlainTextEdit;
-class QListWidgetItem;
-QT_END_NAMESPACE
-
-namespace Utils { class IconButton; }
-
namespace Core {
-namespace Internal { namespace Ui { class VariableChooser; } }
+namespace Internal { class VariableChooserPrivate; }
class CORE_EXPORT VariableChooser : public QWidget
{
@@ -63,23 +53,8 @@ protected:
void keyPressEvent(QKeyEvent *ke);
bool eventFilter(QObject *, QEvent *event);
-private slots:
- void updateDescription(const QString &variable);
- void updateCurrentEditor(QWidget *old, QWidget *widget);
- void handleItemActivated(QListWidgetItem *item);
- void insertVariable(const QString &variable);
- void updatePositionAndShow();
-
private:
- QWidget *currentWidget();
- void createIconButton();
-
- Internal::Ui::VariableChooser *ui;
- QString m_defaultDescription;
- QPointer<QLineEdit> m_lineEdit;
- QPointer<QTextEdit> m_textEdit;
- QPointer<QPlainTextEdit> m_plainTextEdit;
- QPointer<Utils::IconButton> m_iconButton;
+ Internal::VariableChooserPrivate *d;
};
} // namespace Core