]> git.sur5r.net Git - bacula/bacula/commitdiff
Change selection behavior in the director status screen.
authorDirk H Bartley <dbartley@schupan.com>
Wed, 22 Jul 2009 01:09:09 +0000 (01:09 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Wed, 22 Jul 2009 01:09:09 +0000 (01:09 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9082 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/status/dirstat.cpp

index a4d05860f3570d4538c11fe2b0a7b696c9f59efc..de63951978c1a18afebbaaa9acc20ee789a4cfd9 100644 (file)
@@ -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;
          }