]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
- Make the available signals dialog blend into the widget base
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 17 Apr 2015 23:15:41 +0000 (01:15 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 17 Apr 2015 23:15:41 +0000 (01:15 +0200)
- Disallow modifications of the signal descriptions

gui/exportrawdatadialog.cpp
gui/exportrawdatadialog.ui

index 303fd54c07845040aff65800210ca83e99f7c139..47544e1881459ae1170d82776451d26e38d3e873 100644 (file)
@@ -41,6 +41,13 @@ ExportRawDataDialog::ExportRawDataDialog(QWidget* parent) :
   ui->qcbox_formats->setSizeAdjustPolicy(QComboBox::AdjustToContents);
   ui->qlv_availableSignals->setSizeAdjustPolicy(QListView::AdjustToContents);
 
+  /* Make the background of availableSignals view the same color as the widget base */
+  QPalette oldPalette(ui->qlv_availableSignals->palette());
+  QPalette newPalette(oldPalette);
+  newPalette.setColor(QPalette::Inactive, QPalette::Base, oldPalette.color(QPalette::Disabled, QPalette::Base));
+  newPalette.setColor(QPalette::Active, QPalette::Base, oldPalette.color(QPalette::Disabled, QPalette::Base));
+  ui->qlv_availableSignals->setPalette(newPalette);
+
   connect(ui->qpb_browse, SIGNAL(clicked()), this, SLOT(onBrowseClicked()));
   connect(ui->qpb_ok, SIGNAL(clicked()), this, SLOT(accept()));
   connect(ui->qpb_cancel, SIGNAL(clicked()), this, SLOT(reject()));
index 6763b80fde2f84356ee1a6f5b69a1edefa99df2e..e4d09e8d3c6e08d8dfd74e073c84aa1fe0dad69b 100644 (file)
      </item>
      <item>
       <widget class="QListView" name="qlv_availableSignals">
+       <property name="enabled">
+        <bool>true</bool>
+       </property>
        <property name="sizePolicy">
         <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
+       <property name="autoFillBackground">
+        <bool>false</bool>
+       </property>
+       <property name="frameShape">
+        <enum>QFrame::NoFrame</enum>
+       </property>
+       <property name="frameShadow">
+        <enum>QFrame::Sunken</enum>
+       </property>
+       <property name="editTriggers">
+        <set>QAbstractItemView::NoEditTriggers</set>
+       </property>
+       <property name="showDropIndicator" stdset="0">
+        <bool>false</bool>
+       </property>
+       <property name="selectionMode">
+        <enum>QAbstractItemView::NoSelection</enum>
+       </property>
       </widget>
      </item>
     </layout>