From eaf827005bf44618086c3098ab8a7f1dfa38434f Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 12 Sep 2007 00:09:35 +0000 Subject: [PATCH] set the tooltip just once svn path=/trunk/KDE/kdegraphics/okular/; revision=711306 --- shell/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index b015081b4..68964674f 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -141,7 +141,6 @@ void Shell::readSettings() { m_recent->loadEntries( KGlobal::config()->group( "Recent Files" ) ); m_recent->setEnabled( true ); // force enabling - m_recent->setToolTip( i18n("Click to open a file\nClick and hold to open a recent file") ); const KConfigGroup group = KGlobal::config()->group( "Desktop Entry" ); bool fullScreen = group.readEntry( "FullScreen", false ); @@ -163,6 +162,7 @@ void Shell::setupActions() m_recent->setToolBarMode( KRecentFilesAction::MenuMode ); m_recent->setToolButtonPopupMode( QToolButton::DelayedPopup ); connect( m_recent, SIGNAL( triggered() ), this, SLOT( fileOpen() ) ); + m_recent->setToolTip( i18n("Click to open a file\nClick and hold to open a recent file") ); m_recent->setWhatsThis( i18n( "Click to open a file or Click and hold to select a recent file" ) ); m_printAction = KStandardAction::print( m_part, SLOT( slotPrint() ), actionCollection() ); m_printAction->setEnabled( false );