The general idea is to make it behave consistently with other navigating
buttons.
BUG: 278194
FIXED-IN:4.8.0
REVIEW:103659
+void DolphinMainWindow::goHome(Qt::MouseButtons buttons)
+{
+ // The default case (left button pressed) is handled in goHome().
+ if (buttons == Qt::MidButton) {
+ openNewTab(GeneralSettings::self()->homeUrl());
+ }
+}
+
void DolphinMainWindow::compareFiles()
{
// The method is only invoked if exactly 2 files have
void DolphinMainWindow::compareFiles()
{
// The method is only invoked if exactly 2 files have
KAction* upAction = KStandardAction::up(this, SLOT(goUp()), actionCollection());
connect(upAction, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this, SLOT(goUp(Qt::MouseButtons)));
KAction* upAction = KStandardAction::up(this, SLOT(goUp()), actionCollection());
connect(upAction, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this, SLOT(goUp(Qt::MouseButtons)));
- KStandardAction::home(this, SLOT(goHome()), actionCollection());
+ KAction* homeAction = KStandardAction::home(this, SLOT(goHome()), actionCollection());
+ connect(homeAction, SIGNAL(triggered(Qt::MouseButtons,Qt::KeyboardModifiers)), this, SLOT(goHome(Qt::MouseButtons)));
// setup 'Tools' menu
KAction* showFilterBar = actionCollection()->addAction("show_filter_bar");
// setup 'Tools' menu
KAction* showFilterBar = actionCollection()->addAction("show_filter_bar");
*/
void goUp(Qt::MouseButtons buttons);
*/
void goUp(Qt::MouseButtons buttons);
+ /**
+ * Open the home URL in a new tab
+ */
+ void goHome(Qt::MouseButtons buttons);
+
/** Opens Kompare for 2 selected files. */
void compareFiles();
/** Opens Kompare for 2 selected files. */
void compareFiles();