Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/plugins/folder/foldermodel.cpp
Show First 20 Lines • Show All 1631 Lines • ▼ Show 20 Line(s) | 1594 | { | |||
---|---|---|---|---|---|
1632 | m_actionCollection.addAction(QStringLiteral("pasteto"), pasteTo); | 1632 | m_actionCollection.addAction(QStringLiteral("pasteto"), pasteTo); | ||
1633 | m_actionCollection.addAction(QStringLiteral("refresh"), refresh); | 1633 | m_actionCollection.addAction(QStringLiteral("refresh"), refresh); | ||
1634 | m_actionCollection.addAction(QStringLiteral("rename"), rename); | 1634 | m_actionCollection.addAction(QStringLiteral("rename"), rename); | ||
1635 | m_actionCollection.addAction(QStringLiteral("trash"), trash); | 1635 | m_actionCollection.addAction(QStringLiteral("trash"), trash); | ||
1636 | m_actionCollection.addAction(QStringLiteral("del"), del); | 1636 | m_actionCollection.addAction(QStringLiteral("del"), del); | ||
1637 | m_actionCollection.addAction(QStringLiteral("restoreFromTrash"), restoreFromTrash); | 1637 | m_actionCollection.addAction(QStringLiteral("restoreFromTrash"), restoreFromTrash); | ||
1638 | m_actionCollection.addAction(QStringLiteral("emptyTrash"), emptyTrash); | 1638 | m_actionCollection.addAction(QStringLiteral("emptyTrash"), emptyTrash); | ||
1639 | 1639 | | |||
1640 | m_newMenu = new KNewFileMenu(&m_actionCollection, QStringLiteral("newMenu"), QApplication::desktop()); | 1640 | m_newMenu = new KNewFileMenu(&m_actionCollection, QStringLiteral("newMenu"), this); | ||
davidedmundson:
KNewFileMenu.cpp in the constructor
1148 d->m_parentWidget = qobject_cast<QWidget *>… | |||||
It doesn't show any issues that I can see. apol: It doesn't show any issues that I can see.
Also the QDesktopWidget isn't an actual widget so… | |||||
1641 | m_newMenu->setModal(false); | 1641 | m_newMenu->setModal(false); | ||
1642 | connect(m_newMenu, &KNewFileMenu::directoryCreated, this, &FolderModel::newFileMenuItemCreated); | 1642 | connect(m_newMenu, &KNewFileMenu::directoryCreated, this, &FolderModel::newFileMenuItemCreated); | ||
1643 | connect(m_newMenu, &KNewFileMenu::fileCreated, this, &FolderModel::newFileMenuItemCreated); | 1643 | connect(m_newMenu, &KNewFileMenu::fileCreated, this, &FolderModel::newFileMenuItemCreated); | ||
1644 | 1644 | | |||
1645 | m_copyToMenu = new KFileCopyToMenu(nullptr); | 1645 | m_copyToMenu = new KFileCopyToMenu(nullptr); | ||
1646 | } | 1646 | } | ||
1647 | 1647 | | |||
1648 | QAction* FolderModel::action(const QString &name) const | 1648 | QAction* FolderModel::action(const QString &name) const | ||
▲ Show 20 Lines • Show All 459 Lines • Show Last 20 Lines |
KNewFileMenu.cpp in the constructor
1148 d->m_parentWidget = qobject_cast<QWidget *>(parent);
without a transient parent we probably have focus issues?