summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/diagramscene/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/diagramscene/mainwindow.h')
-rw-r--r--examples/widgets/graphicsview/diagramscene/mainwindow.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/widgets/graphicsview/diagramscene/mainwindow.h b/examples/widgets/graphicsview/diagramscene/mainwindow.h
index 34f98f6513..fe8a91901f 100644
--- a/examples/widgets/graphicsview/diagramscene/mainwindow.h
+++ b/examples/widgets/graphicsview/diagramscene/mainwindow.h
@@ -64,7 +64,9 @@ private:
const QString &image);
QWidget *createCellWidget(const QString &text,
DiagramItem::DiagramType type);
- QMenu *createColorMenu(const char *slot, QColor defaultColor);
+
+ template<typename PointerToMemberFunction>
+ QMenu *createColorMenu(const PointerToMemberFunction &slot, QColor defaultColor);
QIcon createColorToolButtonIcon(const QString &image, QColor color);
QIcon createColorIcon(QColor color);