Skip to content
Permalink
Browse files

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 8, 2013
1 parent 95a89d2 commit d1ec3f420bcab72e4867ad06048dfc062ba7c58f
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/gui/qgsmessagelogviewer.cpp
@@ -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 ) ) );
@@ -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 )
{
@@ -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.
You can’t perform that action at this time.