mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
put a toolbutton in the toolbar instead of the so loooong combobox, and fix the connection. still crashes, though
svn path=/branches/work/kde4/playground/graphics/okular/; revision=533654
This commit is contained in:
parent
4ebfbdfdbd
commit
622cea4f92
|
@ -156,7 +156,8 @@ void Shell::setupActions()
|
|||
{
|
||||
KAction * openAction = KStdAction::open(this, SLOT(fileOpen()), actionCollection());
|
||||
m_recent = KStdAction::openRecent( this, SLOT( openURL( const KUrl& ) ), actionCollection() );
|
||||
connect( m_recent, SIGNAL( activated() ), openAction, SLOT( trigger() ) );
|
||||
m_recent->setToolBarMode( KRecentFilesAction::MenuMode );
|
||||
connect( m_recent, SIGNAL( urlSelected( const KUrl& ) ), this, SLOT( openURL( const KUrl& ) ) );
|
||||
m_recent->setWhatsThis( i18n( "<b>Click</b> to open a file or <b>Click and hold</b> to select a recent file" ) );
|
||||
m_printAction = KStdAction::print( m_part, SLOT( slotPrint() ), actionCollection() );
|
||||
m_printAction->setEnabled( false );
|
||||
|
|
Loading…
Reference in a new issue