Make the openRecent just be open recent

Stop being too smart for own our good, try to merge open and openRecent actions in just one action
confuses the hell out of people, so let's KISS and just make open recent be open recent
BUGS: 302358
BUGS: 251335
FIXED-IN: 4.10.0
This commit is contained in:
Albert Astals Cid 2012-08-21 00:35:41 +02:00
parent 8dbd83ab2a
commit 02b04e7e9b
2 changed files with 7 additions and 2 deletions

View file

@ -117,6 +117,11 @@ void Shell::delayedOpen()
openUrl( m_openUrl );
}
void Shell::showOpenRecentMenu()
{
m_recent->menu()->popup(QCursor::pos());
}
Shell::~Shell()
{
if ( m_part )
@ -182,8 +187,7 @@ void Shell::setupActions()
KStandardAction::open(this, SLOT(fileOpen()), actionCollection());
m_recent = KStandardAction::openRecent( this, SLOT(openUrl(KUrl)), actionCollection() );
m_recent->setToolBarMode( KRecentFilesAction::MenuMode );
m_recent->setToolButtonPopupMode( QToolButton::DelayedPopup );
connect( m_recent, SIGNAL(triggered()), this, SLOT(fileOpen()) );
connect( m_recent, SIGNAL(triggered()), this, SLOT(showOpenRecentMenu()) );
m_recent->setToolTip( i18n("Click to open a file\nClick and hold to open a recent file") );
m_recent->setWhatsThis( i18n( "<b>Click</b> to open a file or <b>Click and hold</b> to select a recent file" ) );
m_printAction = KStandardAction::print( m_part, SLOT(slotPrint()), actionCollection() );

View file

@ -80,6 +80,7 @@ private slots:
void openUrl( const KUrl & url );
void delayedOpen();
void showOpenRecentMenu();
signals:
void restoreDocument(const KConfigGroup &group);