From: Dirk H Bartley Date: Wed, 22 Jul 2009 01:09:09 +0000 (+0000) Subject: Change selection behavior in the director status screen. X-Git-Tag: Release-5.0.0~480 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce0276e603dc3a10ceed93b05631d49b8d25c678;p=bacula%2Fbacula Change selection behavior in the director status screen. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9082 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/status/dirstat.cpp b/bacula/src/qt-console/status/dirstat.cpp index a4d05860f3..de63951978 100644 --- a/bacula/src/qt-console/status/dirstat.cpp +++ b/bacula/src/qt-console/status/dirstat.cpp @@ -206,6 +206,8 @@ void DirStat::populateScheduled() scheduledTable->setColumnCount(headerlist.size()); scheduledTable->setHorizontalHeaderLabels(headerlist); + scheduledTable->setSelectionBehavior(QAbstractItemView::SelectRows); + scheduledTable->setSelectionMode(QAbstractItemView::SingleSelection); if (m_console->dir_cmd(command, results)) { int row = 0; @@ -221,7 +223,6 @@ void DirStat::populateScheduled() field = field.trimmed(); /* strip leading & trailing spaces */ p_tableitem = new QTableWidgetItem(field, 1); p_tableitem->setForeground(blackBrush); - p_tableitem->setFlags(0); scheduledTable->setItem(row, column, p_tableitem); column += 1; } @@ -250,6 +251,7 @@ void DirStat::populateRunning() runningTable->setColumnCount(headerlist.size()); runningTable->setHorizontalHeaderLabels(headerlist); + runningTable->setSelectionBehavior(QAbstractItemView::SelectRows); if (m_console->dir_cmd(command, results)) { int row = 0; @@ -265,7 +267,6 @@ void DirStat::populateRunning() field = field.trimmed(); /* strip leading & trailing spaces */ p_tableitem = new QTableWidgetItem(field, 1); p_tableitem->setForeground(blackBrush); - p_tableitem->setFlags(Qt::ItemIsSelectable); runningTable->setItem(row, column, p_tableitem); column += 1; }