mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Remove more unneeded composer window code
This commit is contained in:
parent
c60a73cb9a
commit
9be22e1938
@ -465,8 +465,6 @@ QgsComposer::QgsComposer( QgsComposition *composition )
|
||||
menuBar()->addMenu( mHelpMenu );
|
||||
#endif
|
||||
|
||||
mFirstTime = true;
|
||||
|
||||
setMouseTracking( true );
|
||||
mViewFrame->setMouseTracking( true );
|
||||
|
||||
@ -816,23 +814,11 @@ void QgsComposer::connectOtherSlots()
|
||||
|
||||
void QgsComposer::open()
|
||||
{
|
||||
if ( mFirstTime )
|
||||
show();
|
||||
zoomFull(); // zoomFull() does not work properly until we have called show()
|
||||
if ( mView )
|
||||
{
|
||||
//mComposition->createDefault();
|
||||
mFirstTime = false;
|
||||
show();
|
||||
zoomFull(); // zoomFull() does not work properly until we have called show()
|
||||
if ( mView )
|
||||
{
|
||||
mView->updateRulers();
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
show(); //make sure the window is displayed - with a saved project, it's possible to not have already called show()
|
||||
//is that a bug?
|
||||
activate(); //bring the composer window to the front
|
||||
mView->updateRulers();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -550,9 +550,6 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
|
||||
//! Pointer to QGIS application
|
||||
QgisApp *mQgis = nullptr;
|
||||
|
||||
//! The composer was opened first time (-> set defaults)
|
||||
bool mFirstTime;
|
||||
|
||||
//! Layout
|
||||
QGridLayout *mItemOptionsLayout = nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user