mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Untangle Profile from MainWindow: shortcuts
This, too, should be done with signals. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
000c9cc21c
commit
1013ba39c5
4 changed files with 11 additions and 10 deletions
|
@ -88,6 +88,8 @@ int main(int argc, char **argv)
|
|||
// now let's set up some connections
|
||||
QObject::connect(m->graphics(), &ProfileWidget2::enableToolbar ,m, &MainWindow::setEnabledToolbar, Qt::AutoConnection);
|
||||
QObject::connect(m->graphics(), &ProfileWidget2::showError, m, &MainWindow::showError, Qt::AutoConnection);
|
||||
QObject::connect(m->graphics(), &ProfileWidget2::disableShortcuts, m, &MainWindow::disableShortcuts, Qt::AutoConnection);
|
||||
QObject::connect(m->graphics(), &ProfileWidget2::enableShortcuts, m, &MainWindow::enableShortcuts, Qt::AutoConnection);
|
||||
if (verbose > 0)
|
||||
print_files();
|
||||
if (!quit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue