From c9029bf996e27e7f36d7755e6b71f73e242d87ee Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 20 Jun 2014 00:34:41 +0200 Subject: VariableChooser: Slim down header and implementation Change-Id: Ia39c94c2e87717c23cb0d7466b68c922b033979b Reviewed-by: Eike Ziller --- src/plugins/coreplugin/variablechooser.h | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'src/plugins/coreplugin/variablechooser.h') 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 #include -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 m_lineEdit; - QPointer m_textEdit; - QPointer m_plainTextEdit; - QPointer m_iconButton; + Internal::VariableChooserPrivate *d; }; } // namespace Core -- cgit v1.2.1