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:
Pino Toscano 2006-04-25 12:37:27 +00:00
parent 4ebfbdfdbd
commit 622cea4f92

View file

@ -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 );