author | llornkcor <llornkcor> | 2004-04-26 06:42:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-04-26 06:42:17 (UTC) |
commit | 4f6f06bab5c52c645ac33bdf77d4ed462b7c6a96 (patch) (unidiff) | |
tree | c1c6adc8c197ea923b1cb8c784f5968ca5fe906b /core | |
parent | 0e3e74030b2a38cfc754d253ab098a1126f382ef (diff) | |
download | opie-4f6f06bab5c52c645ac33bdf77d4ed462b7c6a96.zip opie-4f6f06bab5c52c645ac33bdf77d4ed462b7c6a96.tar.gz opie-4f6f06bab5c52c645ac33bdf77d4ed462b7c6a96.tar.bz2 |
make shutdown app move to more proper position so it doesn't cut off the titlebar
-rw-r--r-- | core/launcher/serverapp.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp index cf543ce..807942d 100644 --- a/core/launcher/serverapp.cpp +++ b/core/launcher/serverapp.cpp | |||
@@ -696,24 +696,26 @@ void ServerApplication::clearSafeMode() | |||
696 | #endif | 696 | #endif |
697 | } | 697 | } |
698 | 698 | ||
699 | 699 | ||
700 | void ServerApplication::shutdown() | 700 | void ServerApplication::shutdown() |
701 | { | 701 | { |
702 | if ( type() != GuiServer ) | 702 | if ( type() != GuiServer ) |
703 | return; | 703 | return; |
704 | ShutdownImpl *sd = new ShutdownImpl( 0, 0, WDestructiveClose ); | 704 | ShutdownImpl *sd = new ShutdownImpl( 0, 0, WDestructiveClose ); |
705 | connect( sd, SIGNAL(shutdown(ShutdownImpl::Type)), | 705 | connect( sd, SIGNAL(shutdown(ShutdownImpl::Type)), |
706 | this, SLOT(shutdown(ShutdownImpl::Type)) ); | 706 | this, SLOT(shutdown(ShutdownImpl::Type)) ); |
707 | QPEApplication::showWidget( sd ); | 707 | QPEApplication::showWidget( sd ); |
708 | sd->move(0,0); | ||
709 | |||
708 | } | 710 | } |
709 | 711 | ||
710 | void ServerApplication::shutdown( ShutdownImpl::Type t ) | 712 | void ServerApplication::shutdown( ShutdownImpl::Type t ) |
711 | { | 713 | { |
712 | char *opt = 0; | 714 | char *opt = 0; |
713 | 715 | ||
714 | switch ( t ) { | 716 | switch ( t ) { |
715 | case ShutdownImpl::ShutdownSystem: | 717 | case ShutdownImpl::ShutdownSystem: |
716 | opt = "-h"; | 718 | opt = "-h"; |
717 | // fall through | 719 | // fall through |
718 | case ShutdownImpl::RebootSystem: | 720 | case ShutdownImpl::RebootSystem: |
719 | if ( opt == 0 ) | 721 | if ( opt == 0 ) |