diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-09-07 16:30:18 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-09-07 16:55:04 +0200 |
commit | ddb1c96650eb0264f27f32721e69436c1a8de6b6 (patch) | |
tree | 2c96272e03b53e5b462fbc158db2b418431c5b2e /src/plugins/projectexplorer/kitconfigwidget.h | |
parent | f278a87adb2feb2e907b4004d5f679ea366c4db9 (diff) | |
download | qt-creator-ddb1c96650eb0264f27f32721e69436c1a8de6b6.tar.gz |
Add addToLayout()-method to KitConfigWidget.
Provide default implementation to do a single-line layout
and let the DebuggerKitConfigWidget span 3 rows, aligning label
and button accordingly.
Change-Id: I0fb3a3116a593822da9c4499c142b8a8255c02d0
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/projectexplorer/kitconfigwidget.h')
-rw-r--r-- | src/plugins/projectexplorer/kitconfigwidget.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitconfigwidget.h b/src/plugins/projectexplorer/kitconfigwidget.h index d48033dbc8..e8e141c867 100644 --- a/src/plugins/projectexplorer/kitconfigwidget.h +++ b/src/plugins/projectexplorer/kitconfigwidget.h @@ -35,6 +35,8 @@ #include <QWidget> +QT_FORWARD_DECLARE_CLASS(QGridLayout) + namespace ProjectExplorer { // -------------------------------------------------------------------------- @@ -46,6 +48,12 @@ class PROJECTEXPLORER_EXPORT KitConfigWidget : public QWidget Q_OBJECT public: + enum LayoutColumns { + LabelColumn, + WidgetColumn, + ButtonColumn + }; + KitConfigWidget(QWidget *parent = 0) : QWidget(parent) { } @@ -57,8 +65,15 @@ public: virtual bool isDirty() const = 0; virtual QWidget *buttonWidget() const { return 0; } + + virtual void addToLayout(QGridLayout *layout, int row); + signals: void dirty(); + +protected: + void addLabel(QGridLayout *layout, int row); + void addButtonWidget(QGridLayout *layout, int row); }; } // namespace ProjectExplorer |