Skip to content

Commit d1ec3f4

Browse files
committed
Removed tooltip that shows how many messages are logged on android.
This tooltip was rendered as a fullscreen yellow widget in android.
1 parent 95a89d2 commit d1ec3f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/gui/qgsmessagelogviewer.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ QgsMessageLogViewer::QgsMessageLogViewer( QStatusBar *statusBar, QWidget *parent
5656
mButton->setMaximumWidth( 20 );
5757
mButton->setMaximumHeight( 20 );
5858
mButton->setIcon( icon( "/mIconWarn.png" ) );
59+
#ifndef ANDROID
5960
mButton->setToolTip( tr( "No messages." ) );
61+
#endif
6062
mButton->setCheckable( true );
6163
mButton->hide();
6264
connect( mButton, SIGNAL( toggled( bool ) ), this, SLOT( buttonToggled( bool ) ) );
@@ -108,7 +110,11 @@ void QgsMessageLogViewer::buttonDestroyed()
108110

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

113119
if ( !isVisible() && level > QgsMessageLog::INFO )
114120
{
@@ -163,7 +169,11 @@ void QgsMessageLogViewer::closeTab( int index )
163169
{
164170
mCount -= w->rowCount();
165171
if ( mButton )
172+
#ifdef ANDROID
173+
mCount++;
174+
#else
166175
mButton->setToolTip( tr( "%1 message(s) logged." ).arg( mCount++ ) );
176+
#endif
167177
}
168178
tabWidget->removeTab( index );
169179
}

0 commit comments

Comments
 (0)