Commit 2e69abc6 authored by David Edmundson's avatar David Edmundson
Browse files

KMenu -> QMenu

parent 9ad10bf2
......@@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
#include <QDebug>
#include <KFileDialog>
#include <KFileItem>
#include <KMenu>
#include <QMenu>
#include <KInputDialog>
#include <KPushButton>
#include <KIO/CopyJob>
......@@ -158,7 +158,7 @@ void showMenuForDroppedUrls(QWidget* parent, const QList<QUrl>& urlList, const Q
return;
}
KMenu menu(parent);
QMenu menu(parent);
QAction* moveAction = menu.addAction(
QIcon::fromTheme("go-jump"),
i18n("Move Here"));
......
......@@ -38,7 +38,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
#include <KActionCollection>
#include <KActionMenu>
#include <KLocale>
#include <KMenu>
#include <QMenu>
#include <KToolBar>
#include <KIconLoader>
#include <QAction>
......
......@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
// KDE
#include <QDebug>
#include <KMenu>
#include <QMenu>
#include <KLocale>
// Local
......@@ -45,7 +45,7 @@ struct KIPIExportActionPrivate
void updateMenu()
{
KMenu* menu = static_cast<KMenu*>(q->menu());
QMenu* menu = static_cast<QMenu*>(q->menu());
menu->clear();
if (mDefaultAction) {
......
......@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <KActionCollection>
#include <QDebug>
#include <KLocale>
#include <KMenu>
#include <QMenu>
// Local
#include <lib/document/documentfactory.h>
......@@ -45,7 +45,7 @@ struct ThumbnailViewHelperPrivate
KActionCollection* mActionCollection;
QUrl mCurrentDirUrl;
void addActionToMenu(KMenu& popup, const char* name)
void addActionToMenu(QMenu& popup, const char* name)
{
QAction* action = mActionCollection->action(name);
if (!action) {
......@@ -77,7 +77,7 @@ void ThumbnailViewHelper::setCurrentDirUrl(const QUrl &url)
void ThumbnailViewHelper::showContextMenu(QWidget* parent)
{
KMenu popup(parent);
QMenu popup(parent);
if (d->mCurrentDirUrl.scheme() == "trash") {
d->addActionToMenu(popup, "file_restore");
d->addActionToMenu(popup, "file_delete");
......
......@@ -33,7 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <KActionCategory>
#include <QDebug>
#include <KLocale>
#include <KMenu>
#include <QMenu>
#include <KMessageBox>
#include <KModelIndexProxyMapper>
#include <KToggleAction>
......@@ -540,7 +540,7 @@ ThumbnailBarView* ViewMainPage::thumbnailBar() const
return d->mThumbnailBar;
}
inline void addActionToMenu(KMenu* menu, KActionCollection* actionCollection, const char* name)
inline void addActionToMenu(QMenu* menu, KActionCollection* actionCollection, const char* name)
{
QAction* action = actionCollection->action(name);
if (action) {
......@@ -550,7 +550,7 @@ inline void addActionToMenu(KMenu* menu, KActionCollection* actionCollection, co
void ViewMainPage::showContextMenu()
{
KMenu menu(this);
QMenu menu(this);
addActionToMenu(&menu, d->mActionCollection, "fullscreen");
menu.addSeparator();
addActionToMenu(&menu, d->mActionCollection, "go_previous");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment