diff options
| author | Felix Ernst <[email protected]> | 2022-09-15 15:19:12 +0200 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2022-09-15 14:18:44 +0000 |
| commit | f4bed9333e927dabc9a723c1b05eac169605dc68 (patch) | |
| tree | 4744bb2f4385e29d32c34d375f2235234941744f /src | |
| parent | 11ada1515d7a2b5f09d25d2df1ce0f6d37887794 (diff) | |
Trigger "Exit Selection Mode" button on clicked and not on pressed
This way it works just like every other button.
This commit also removes two empty files that sneaked in by
accident.
Diffstat (limited to 'src')
| -rw-r--r-- | src/selectionmode/selectionmodebottombar.h | 0 | ||||
| -rw-r--r-- | src/selectionmode/selectionmodetopbar.h | 0 | ||||
| -rw-r--r-- | src/selectionmode/topbar.cpp | 2 |
3 files changed, 1 insertions, 1 deletions
diff --git a/src/selectionmode/selectionmodebottombar.h b/src/selectionmode/selectionmodebottombar.h deleted file mode 100644 index e69de29bb..000000000 --- a/src/selectionmode/selectionmodebottombar.h +++ /dev/null diff --git a/src/selectionmode/selectionmodetopbar.h b/src/selectionmode/selectionmodetopbar.h deleted file mode 100644 index e69de29bb..000000000 --- a/src/selectionmode/selectionmodetopbar.h +++ /dev/null diff --git a/src/selectionmode/topbar.cpp b/src/selectionmode/topbar.cpp index 5d218dd99..67cac87cd 100644 --- a/src/selectionmode/topbar.cpp +++ b/src/selectionmode/topbar.cpp @@ -68,7 +68,7 @@ TopBar::TopBar(QWidget *parent) : m_closeButton = new QPushButton(QIcon::fromTheme(QStringLiteral("window-close-symbolic")), "", contentsContainer); m_closeButton->setText(i18nc("@action:button", "Exit Selection Mode")); m_closeButton->setFlat(true); - connect(m_closeButton, &QAbstractButton::pressed, + connect(m_closeButton, &QAbstractButton::clicked, this, &TopBar::selectionModeLeavingRequested); QHBoxLayout *layout = new QHBoxLayout(contentsContainer); |
