aboutsummaryrefslogtreecommitdiffstats
path: root/callbacks-gtk.h
diff options
context:
space:
mode:
authorGravatar Amit Chaudhuri <amit.k.chaudhuri@gmail.com>2013-04-09 09:35:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-09 06:50:42 -0700
commita94e09ad5c212dd839b4bba166dba496b31212ce (patch)
tree0e92de8012a70458ce6b8b5f919efe05ba9d45fe /callbacks-gtk.h
parente865aed478b30a0f9a93b2f2c87d23cd7cbd72df (diff)
downloadsubsurface-a94e09ad5c212dd839b4bba166dba496b31212ce.tar.gz
Add a slot to mainwindow but amend to use Q_SLOTS
For some reason, 'private slots:' causes a build error but private Q_SLOTS: works. The error was that 'slots' did not name a type and it appeared to be insensitive to whether the Makefile rule for .moc was in its current place or preceeded the rule for .cpp. Add a slot using the connectByName idiom e.g. actionNew connects to slot on_actionNew_triggered(). Use qDebug to show this fires if the menu option is selected. Above to demonstrate how to begin to link menu to code paths. Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'callbacks-gtk.h')
0 files changed, 0 insertions, 0 deletions