Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed tooltip that shows how many messages are logged on android.
This tooltip was rendered as a fullscreen yellow widget in android.
  • Loading branch information
mbernasocchi committed Sep 10, 2013
1 parent 95a89d2 commit d1ec3f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/gui/qgsmessagelogviewer.cpp
Expand Up @@ -56,7 +56,9 @@ QgsMessageLogViewer::QgsMessageLogViewer( QStatusBar *statusBar, QWidget *parent
mButton->setMaximumWidth( 20 );
mButton->setMaximumHeight( 20 );
mButton->setIcon( icon( "/mIconWarn.png" ) );
#ifndef ANDROID
mButton->setToolTip( tr( "No messages." ) );
#endif
mButton->setCheckable( true );
mButton->hide();
connect( mButton, SIGNAL( toggled( bool ) ), this, SLOT( buttonToggled( bool ) ) );
Expand Down Expand Up @@ -108,7 +110,11 @@ void QgsMessageLogViewer::buttonDestroyed()

void QgsMessageLogViewer::logMessage( QString message, QString tag, QgsMessageLog::MessageLevel level )
{
#ifdef ANDROID
mCount++;
#else
mButton->setToolTip( tr( "%1 message(s) logged." ).arg( mCount++ ) );
#endif

if ( !isVisible() && level > QgsMessageLog::INFO )
{
Expand Down Expand Up @@ -163,7 +169,11 @@ void QgsMessageLogViewer::closeTab( int index )
{
mCount -= w->rowCount();
if ( mButton )
#ifdef ANDROID
mCount++;
#else
mButton->setToolTip( tr( "%1 message(s) logged." ).arg( mCount++ ) );
#endif
}
tabWidget->removeTab( index );
}

0 comments on commit d1ec3f4

Please sign in to comment.