Skip to content

Commit

Permalink
Hide borders from status bar items under Windows
Browse files Browse the repository at this point in the history
These aren't required and just clutter the interface.
  • Loading branch information
nyalldawson committed Oct 28, 2014
1 parent dbed468 commit 8617143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/app/composer/qgscomposer.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
5 changes: 3 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 8617143

Please sign in to comment.