aboutsummaryrefslogtreecommitdiff
path: root/lumina-wm-INCOMPLETE
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-10 12:42:51 -0400
committerKen Moore <moorekou@gmail.com>2015-09-10 12:42:51 -0400
commitbb2331a3c1ffe1709abc77a681b106218e16a128 (patch)
tree3ee1873ef6be400ef438d4c352c6f3ae780b7f4d /lumina-wm-INCOMPLETE
parentAdjust the name within the lumina-info app registration file - no need to hav... (diff)
downloadlumina-bb2331a3c1ffe1709abc77a681b106218e16a128.tar.gz
lumina-bb2331a3c1ffe1709abc77a681b106218e16a128.tar.bz2
lumina-bb2331a3c1ffe1709abc77a681b106218e16a128.zip
Couple minor adjustments to the lumina-wm window routines.
Diffstat (limited to 'lumina-wm-INCOMPLETE')
-rw-r--r--lumina-wm-INCOMPLETE/LWindow.cpp4
-rw-r--r--lumina-wm-INCOMPLETE/main.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/lumina-wm-INCOMPLETE/LWindow.cpp b/lumina-wm-INCOMPLETE/LWindow.cpp
index d6ad188c..9d9f9fcd 100644
--- a/lumina-wm-INCOMPLETE/LWindow.cpp
+++ b/lumina-wm-INCOMPLETE/LWindow.cpp
@@ -222,11 +222,11 @@ void LWindow::showAnimation(LWM::WindowAction act){
//Setup the animation routine
if(act==LWM::Show){
if(useanimation){
- if(lastGeom.isEmpty()){ lastGeom = this->geometry(); } //such as for a first showing
+ lastGeom = this->geometry();
//Expand out from center point
anim->setPropertyName("geometry");
anim->setStartValue( QRect(lastGeom.center(), QSize(0,0) ) );
- anim->setEndValue( QRect(lastGeom) );
+ anim->setEndValue( this->geometry() );
//Fade in gradually
//anim->setPropertyName("windowOpacity");
//anim->setStartValue( 0.0 );
diff --git a/lumina-wm-INCOMPLETE/main.cpp b/lumina-wm-INCOMPLETE/main.cpp
index e4eee4ee..683bbb24 100644
--- a/lumina-wm-INCOMPLETE/main.cpp
+++ b/lumina-wm-INCOMPLETE/main.cpp
@@ -34,9 +34,10 @@ int main(int argc, char ** argv)
QLabel dlg(0, Qt::Window | Qt::BypassWindowManagerHint); //this test should be ignored by the current WM
dlg.setText("Sample Window");
dlg.setWindowTitle("Test");
- dlg.setGeometry(100,100,200,100);
+ dlg.resize(200,100);
dlg.setStyleSheet("background: rgba(255,255,255,100); color: black;");
dlg.show();
+ dlg.move(100,100);
qDebug() << " - Loading window frame...";
LWindow win(dlg.winId()); //have it wrap around the dialog
qDebug() << " - Show frame...";
bgstack15