Skip to content
Permalink
Browse files

Hide borders from status bar items under Windows

These aren't required and just clutter the interface.
  • Loading branch information
nyalldawson committed Oct 28, 2014
1 parent dbed468 commit 8617143c9e922a43045f42112668c19d78a898ae
Showing with 6 additions and 2 deletions.
  1. +3 −0 src/app/composer/qgscomposer.cpp
  2. +3 −2 src/app/qgisapp.cpp
3 src/app/composer/qgscomposer.cpp 100755 → 100644
@@ -455,6 +455,9 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
mStatusCompositionLabel->setMinimumWidth( 350 );
mStatusAtlasLabel = new QLabel( mStatusBar );

//hide borders from child items in status bar under Windows
mStatusBar->setStyleSheet( "QStatusBar::item {border: none;}" );

mStatusBar->addWidget( mStatusCursorXLabel );
mStatusBar->addWidget( mStatusCursorYLabel );
mStatusBar->addWidget( mStatusCursorPageLabel );
@@ -1668,10 +1668,11 @@ void QgisApp::createToolBars()

void QgisApp::createStatusBar()
{
//
//remove borders from children under Windows
statusBar()->setStyleSheet( "QStatusBar::item {border: none;}" );

// Add a panel to the status bar for the scale, coords and progress
// And also rendering suppression checkbox
//
mProgressBar = new QProgressBar( statusBar() );
mProgressBar->setObjectName( "mProgressBar" );
mProgressBar->setMaximumWidth( 100 );

0 comments on commit 8617143

Please sign in to comment.
You can’t perform that action at this time.