bool DolphinContextMenu::placeExists(const QUrl& url) const
{
+ Q_UNUSED(url)
// Creating up a PlacesItemModel to find out if 'url' is one of the Places
// can be expensive because the model asks Solid for the devices which are
// available, which can take some time.
case QDialogButtonBox::No:
// Close only the current tab
m_tabWidget->closeTab();
+ // Do not quit, ignore quit event
+ // fall through
default:
event->ignore();
return;
} else {
// Tab state created with Dolphin <= 4.14.x
const QByteArray state = group.readEntry("Tab " % QString::number(i), QByteArray());
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
tabPageAt(i)->restoreStateV1(state);
+#pragma GCC diagnostic pop
}
}
// Copyright (C) 2006 David Faure <faure@kde.org>
QList<QUrl> urls;
QList<QUrl> mostLocalUrls;
- bool canUseMostLocalUrls = true;
const ItemData* lastAddedItem = nullptr;
for (int index : indexes) {
bool isLocal;
mostLocalUrls << item.mostLocalUrl(isLocal);
- if (!isLocal) {
- canUseMostLocalUrls = false;
- }
}
}
}
}
}
- // Fall through to the default case and add the Space to the current search string.
-
+ // fall through
+ // to the default case and add the Space to the current search string.
default:
m_keyboardManager->addKeys(event->text());
// Make sure unconsumed events get propagated up the chain. #302329
#include <Phonon/AudioOutput>
#include <Phonon/MediaObject>
#include <Phonon/SeekSlider>
+#pragma GCC diagnostic push // Phonon doesn't use C++11 compiler by default, so override
+#pragma GCC diagnostic ignored "-Wsuggest-override" // specifier is not available. Remove this pragmas after fixing it.
#include <Phonon/VideoWidget>
+#pragma GCC diagnostic pop
#include <QVBoxLayout>
#include <QShowEvent>