aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootSubWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-29 11:22:28 -0400
committerKen Moore <ken@ixsystems.com>2017-06-29 11:22:28 -0400
commit1d301fca58db2a1ba171a1c3c423a7e32f6a059e (patch)
treeb4308faa819decdd9fb1648aca78cb1be5eb17a9 /src-qt5/core/libLumina/RootSubWindow.cpp
parentClean up the handling of the frameExtents property quite a bit. (diff)
downloadlumina-1d301fca58db2a1ba171a1c3c423a7e32f6a059e.tar.gz
lumina-1d301fca58db2a1ba171a1c3c423a7e32f6a059e.tar.bz2
lumina-1d301fca58db2a1ba171a1c3c423a7e32f6a059e.zip
Oops - fix how the new/initial frame extents get saved into the structure..
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.cpp')
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp
index 213e07ca..bbbbf644 100644
--- a/src-qt5/core/libLumina/RootSubWindow.cpp
+++ b/src-qt5/core/libLumina/RootSubWindow.cpp
@@ -180,6 +180,7 @@ void RootSubWindow::LoadProperties( QList< NativeWindow::Property> list){
QList<int> frame; frame << WIN_BORDER << WIN_BORDER << WIN_BORDER+titleLabel->height() << WIN_BORDER;
vals[i] = QVariant::fromValue< QList<int> >(frame); //use this by default
WIN->requestProperty(NativeWindow::FrameExtents, QVariant::fromValue< QList<int> >(frame)); //make sure these values get saved permanently
+ WIN->setProperty(NativeWindow::FrameExtents, QVariant::fromValue< QList<int> >(frame));
}
}
qDebug() << "Property:" << list[i] << vals[i];
@@ -271,6 +272,7 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList
qDebug() << "Got Widget Size:" << vals[i].toSize();
//WinWidget->setSizeHint( vals[i].toSize() );
//WinWidget->resize(vals[i].toSize() );
+ WinWidget->resize(vals[i].toSize());
this->resize( WIN->geometry().size() );
qDebug() << " - Size after change:" << WinWidget->size() << this->size();
break;
bgstack15