summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/plugandpaint/app/mainwindow.h
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2018-04-19 14:24:24 +0200
committerAndré Hartmann <aha_1980@gmx.de>2018-06-05 15:02:05 +0000
commit7b74b4fbec299c2c8a9956a01d73beda69aee0df (patch)
tree88fef7fa481e674dc92db3c6f7fbd70241406b22 /examples/widgets/tools/plugandpaint/app/mainwindow.h
parent7b797982751dad3a448037ae99c4c8967529dddc (diff)
Doc: Update connect syntax Plugandpaint Example
Task-number: QTBUG-60635 Change-Id: I354a0886b22c63be57bd927308163abd3246be77 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'examples/widgets/tools/plugandpaint/app/mainwindow.h')
-rw-r--r--examples/widgets/tools/plugandpaint/app/mainwindow.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/widgets/tools/plugandpaint/app/mainwindow.h b/examples/widgets/tools/plugandpaint/app/mainwindow.h
index 398759fecf..7d2c085c23 100644
--- a/examples/widgets/tools/plugandpaint/app/mainwindow.h
+++ b/examples/widgets/tools/plugandpaint/app/mainwindow.h
@@ -82,12 +82,14 @@ private slots:
void aboutPlugins();
private:
+ typedef void (MainWindow::*Member)();
+
void createActions();
void createMenus();
void loadPlugins();
void populateMenus(QObject *plugin);
void addToMenu(QObject *plugin, const QStringList &texts, QMenu *menu,
- const char *member, QActionGroup *actionGroup = 0);
+ Member member, QActionGroup *actionGroup = 0);
PaintArea *paintArea;
QScrollArea *scrollArea;