diff options
author | Johann Latocha | 2010-11-30 23:19:33 +0100 |
---|---|---|
committer | Johann Latocha | 2010-11-30 23:19:33 +0100 |
commit | 7dd7a3b81df6cc66e1c67f24f3606ad007942502 (patch) | |
tree | dd92a672cafe75be7592e8e709150eeea3568bec /src/gui/frame.cpp | |
parent | [PVSMGRTOUCH] ProfileDialog close bug fixed (diff) | |
download | pvs-7dd7a3b81df6cc66e1c67f24f3606ad007942502.tar.gz pvs-7dd7a3b81df6cc66e1c67f24f3606ad007942502.tar.xz pvs-7dd7a3b81df6cc66e1c67f24f3606ad007942502.zip |
[PVSMGR] Selected clients become highlighted
Diffstat (limited to 'src/gui/frame.cpp')
-rw-r--r-- | src/gui/frame.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp index 561f3ce..aa6b0cb 100644 --- a/src/gui/frame.cpp +++ b/src/gui/frame.cpp @@ -224,8 +224,6 @@ void Frame::paintEvent(QPaintEvent *event) void Frame::slotClicked() { - //qDebug() << "clickableLabel :: Clicked, searching for" << ip; - if (ip != "") { for (int i=0; i<MainWindow::getConnectionList()->model->rowCount(QModelIndex()); i++) { @@ -234,6 +232,12 @@ void Frame::slotClicked() { MainWindow::getConnectionList()->selectRow(i); MainWindow::getConnectionList()->setCurrentIndex(MainWindow::getConnectionList()->currentIndex()); + + // red border for selected client + QList<ConnectionFrame*> clients = MainWindow::getConnectionWindow()->getAllFrameOnWindow(); + foreach (ConnectionFrame *client, clients) + client->setStyleSheet(STYLE_DEFAULT); + _cFrame->setStyleSheet(STYLE_SELECTED); break; } } |