[Marble-commits] branches/KDE/4.4/kdeedu/marble/src
Torsten Rahn
tackat at kde.org
Sat Jan 9 22:12:07 CET 2010
SVN commit 1072291 by rahn:
- Backport of the printing fix from r1072279
M +4 -6 QtMainWindow.cpp
M +2 -2 marble_part.cpp
--- branches/KDE/4.4/kdeedu/marble/src/QtMainWindow.cpp #1072290:1072291
@@ -160,7 +160,7 @@
m_lockFloatItemsAct = new QAction( tr("Lock Position"),this);
m_lockFloatItemsAct->setCheckable( true );
m_lockFloatItemsAct->setStatusTip(tr("Lock Position of Floating Items"));
- connect(m_lockFloatItemsAct, SIGNAL(triggered( bool )), this, SLOT( lockPosition( bool )));
+ connect(m_lockFloatItemsAct, SIGNAL(toggled( bool )), this, SLOT( lockPosition( bool )));
m_showCloudsAct = new QAction( tr("&Clouds"), this);
m_showCloudsAct->setCheckable( true );
@@ -398,8 +398,8 @@
printSize.scale( ( printer.pageRect() ).size(), Qt::KeepAspectRatio );
- QPoint printTopLeft( mapPageRect.x() + mapPageRect.width() /2 - printSize.width() /2 ,
- mapPageRect.y() + mapPageRect.height()/2 - printSize.height()/2 );
+ QPoint printTopLeft( mapPageRect.width() /2 - printSize.width() /2 ,
+ mapPageRect.height()/2 - printSize.height()/2 );
QRect mapPrintRect( printTopLeft, printSize );
@@ -676,9 +676,7 @@
m_controlView->marbleWidget()->goHome();
}
- bool isLocked = settings.value( "lockFloatItemPositions", false ).toBool();
- m_lockFloatItemsAct->setChecked( isLocked );
- lockPosition(isLocked);
+ m_lockFloatItemsAct->setChecked( settings.value( "lockFloatItemPositions", false ).toBool() );
settings.endGroup();
settings.beginGroup( "Sun" );
--- branches/KDE/4.4/kdeedu/marble/src/marble_part.cpp #1072290:1072291
@@ -228,9 +228,9 @@
printSize.scale( ( printer.pageRect() ).size(), Qt::KeepAspectRatio );
- QPoint printTopLeft( mapPageRect.x() + mapPageRect.width() / 2
+ QPoint printTopLeft( mapPageRect.width() / 2
- printSize.width() / 2,
- mapPageRect.y() + mapPageRect.height() / 2
+ mapPageRect.height() / 2
- printSize.height() / 2 );
QRect mapPrintRect( printTopLeft, printSize );
More information about the Marble-commits
mailing list