Commit 67780340 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Port deprecated KActionMenu::setDelayed() -> setPopupMode()

parent 848d36e8
......@@ -365,7 +365,7 @@ void K3b::MainWindow::initActions()
actionFileNewMenu->setIcon( QIcon::fromTheme( "document-new" ) );
actionFileNewMenu->setToolTip(i18n("Creates a new project"));
actionFileNewMenu->setStatusTip( actionFileNewMenu->toolTip() );
actionFileNewMenu->setDelayed( false );
actionFileNewMenu->setPopupMode( QToolButton::InstantPopup );
actionFileNewMenu->addAction( actionFileNewData );
actionFileNewMenu->addAction( actionFileContinueMultisession );
actionFileNewMenu->addSeparator();
......
......@@ -42,7 +42,7 @@ K3b::DirOperator::DirOperator(const QUrl& url, QWidget* parent )
bmMan->setUpdate( true );
m_bmPopup = new KActionMenu( QIcon::fromTheme("bookmarks"),i18n("Bookmarks"), this);
m_bmPopup->setDelayed( false );
m_bmPopup->setPopupMode( QToolButton::InstantPopup );
m_bmMenu = new KBookmarkMenu( bmMan, this, m_bmPopup->menu(), actionCollection() );
(void)K3b::createAction( this,i18n("&Add to Project"), 0, Qt::SHIFT+Qt::Key_Return,
......
......@@ -82,7 +82,7 @@ K3b::FileView::FileView(QWidget *parent )
d->actionShowBookmarks->setCheckable( true );
KActionMenu* actionOptions = new KActionMenu( QIcon::fromTheme("configure"), i18n("Options"), d->toolBox );
actionOptions->setDelayed( false );
actionOptions->setPopupMode( QToolButton::InstantPopup );
actionOptions->addAction( d->dirOp->actionCollection()->action("sorting menu") );
actionOptions->addAction( d->dirOp->actionCollection()->action("view menu") );
actionOptions->addSeparator();
......
Supports Markdown
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