From 867f6eb946365f47470080bbee503d295311bfd2 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Wed, 7 May 2014 14:15:21 +0200 Subject: Hide bar if the menu is left --- src/client/toolbar/toolbar.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index 8de9e31..b0ded44 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -32,6 +32,9 @@ Toolbar::Toolbar(QWidget *parent) : /* Create the connect window */ _connectWindow = new ConnectWindow(NULL); + // Connect the signals + connect(_connectWindow, SIGNAL(disconnect()), this, SLOT(onDoDisconnect())); + connect(_connectWindow, SIGNAL(connected(ServerConnection*)), this, SLOT(onConnected(ServerConnection*))); /* Setup menu */ _menu = new QMenu(this); @@ -41,15 +44,15 @@ Toolbar::Toolbar(QWidget *parent) : _menu->addSeparator(); _menu->addAction(_acnQuit); _ui->cmdMenu->setMenu(_menu); + // Connect the signals + connect(_menu, SIGNAL(aboutToHide()), this, SLOT(hideBar())); + connect(_acnDisconnect, SIGNAL(triggered()), _connectWindow, SLOT(show())); + connect(_acnQuit, SIGNAL(triggered()), qApp, SLOT(quit())); - /* Connect the signals */ - connect(_connectWindow, SIGNAL(disconnect()), this, SLOT(onDoDisconnect())); - connect(_connectWindow, SIGNAL(connected(ServerConnection*)), this, SLOT(onConnected(ServerConnection*))); + /* Connect the signals from vnc server */ connect(VncServer::instance(), SIGNAL(started(int, QString&, QString&)), this, SLOT(onVncServerIsRunning(int, QString&, QString&))); - connect(_acnQuit, SIGNAL(triggered()), qApp, SLOT(quit())); - connect(_acnDisconnect, SIGNAL(triggered()), _connectWindow, SLOT(show())); - /* Set location */ + /* Set position */ const QDesktopWidget desktop; const QRect primaryScreen = desktop.screenGeometry(); move(primaryScreen.left() + (primaryScreen.width() - this->width())/2 , primaryScreen.top()); -- cgit v1.2.3-55-g7522 From 95ed0908b3eb65f8f662080e81b549b428571b35 Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Wed, 7 May 2014 16:30:53 +0200 Subject: Made cam32.svg look like cam_off32.svg --- icons/cam32.svg | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/icons/cam32.svg b/icons/cam32.svg index 9a4c1c7..c3f085c 100644 --- a/icons/cam32.svg +++ b/icons/cam32.svg @@ -13,7 +13,7 @@ height="32" id="svg2" sodipodi:version="0.32" - inkscape:version="0.48.3.1 r9886" + inkscape:version="0.48.4 r9939" sodipodi:docname="cam32.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape" version="1.0" @@ -45,20 +45,20 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="22.4" - inkscape:cx="2.3730814" - inkscape:cy="13.178208" + inkscape:zoom="11.02381" + inkscape:cx="10.394302" + inkscape:cy="19.913197" inkscape:document-units="px" inkscape:current-layer="layer2" showgrid="true" objecttolerance="10000" gridtolerance="10000" guidetolerance="10000" - inkscape:window-width="1920" - inkscape:window-height="1150" - inkscape:window-x="-4" - inkscape:window-y="0" - inkscape:window-maximized="0"> + inkscape:window-width="1280" + inkscape:window-height="981" + inkscape:window-x="0" + inkscape:window-y="23" + inkscape:window-maximized="1"> image/svg+xml + @@ -83,7 +84,7 @@ inkscape:label="Zeichnung" style="display:inline;filter:url(#filter3249)"> -- cgit v1.2.3-55-g7522