author | mickeyl <mickeyl> | 2003-10-27 19:06:54 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-27 19:06:54 (UTC) |
commit | f0a15a9866f9eddfe10596e63a1e6300b92b9e3f (patch) (side-by-side diff) | |
tree | 8e2829bdd6ba17db418fa5ef19b3e7a06f4003e2 /noncore/comm/keypebble/kvnc.cpp | |
parent | df9d9d818c9667ba8e614e5c09f0e121e9225dfd (diff) | |
download | opie-f0a15a9866f9eddfe10596e63a1e6300b92b9e3f.zip opie-f0a15a9866f9eddfe10596e63a1e6300b92b9e3f.tar.gz opie-f0a15a9866f9eddfe10596e63a1e6300b92b9e3f.tar.bz2 |
merge noncore/comm/*
Diffstat (limited to 'noncore/comm/keypebble/kvnc.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/kvnc.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/comm/keypebble/kvnc.cpp b/noncore/comm/keypebble/kvnc.cpp index 48a442c..c89dec5 100644 --- a/noncore/comm/keypebble/kvnc.cpp +++ b/noncore/comm/keypebble/kvnc.cpp @@ -27,8 +27,8 @@ #include "krfbserver.h" static int u_id = 1; -static int get_unique_id() -{ +static int get_unique_id() +{ return u_id++; } @@ -56,7 +56,7 @@ static char * menu_xpm[] = { const int StatusTextId = 0; -KVNC::KVNC( const char *name ) : QMainWindow( 0, name ,WStyle_ContextHelp) +KVNC::KVNC( QWidget *parent, const char *name, WFlags f) : QMainWindow( 0, name ,WStyle_ContextHelp) { setCaption( tr("VNC Viewer") ); fullscreen = false; @@ -66,7 +66,7 @@ KVNC::KVNC( const char *name ) : QMainWindow( 0, name ,WStyle_ContextHelp) bookmarkSelector=new KVNCBookmarkDlg(); stack->addWidget(bookmarkSelector,get_unique_id()); - stack->raiseWidget( bookmarkSelector ); + stack->raiseWidget( bookmarkSelector ); canvas = new KRFBCanvas( stack, "canvas" ); stack->addWidget(canvas,get_unique_id()); @@ -103,7 +103,7 @@ KVNC::KVNC( const char *name ) : QMainWindow( 0, name ,WStyle_ContextHelp) connect( n, SIGNAL( activated() ), this, SLOT( newConnection() ) ); n->addTo( bar ); - + QAction *o = new QAction( tr( "Open Bookmark" ), Resource::loadPixmap( "fileopen" ), QString::null, 0, this, 0 ); connect( o, SIGNAL( activated() ), @@ -220,11 +220,11 @@ void KVNC::toggleFullScreen() canvas->setFocus(); canvas->grabKeyboard(); canvas->show(); - + fullScreenAction->setText( tr("Stop Full Screen") ); } - - + + fullscreen = !fullscreen; } @@ -266,7 +266,7 @@ void KVNC::loggedIn() void KVNC::disconnected() { - if ( fullscreen ) + if ( fullscreen ) toggleFullScreen(); static QString msg = tr( "Connection closed" ); statusMessage( msg ); |