Browse Source

Revert change of selectionMode from NoSelection to Q3ListBox::Single (set to Q3ListBox::NoSelection) in newsdlg.ui.
Revert change of spacer sizePolicy from Preferred to Qt::Expanding (set to Qt::Preferred) in wordlist.ui.
Set lineWrapMode to QTextEdit::NoWrap and acceptRichText to false for the KTextBrowser in programoutput.ui.
Set list view column properties in the code in toolsdlg.cpp (no longer supported by Qt Designer 4), also get rid of init slot.


git-svn-id: file:///var/svn/tigccpp/trunk@1121 9552661e-59e3-4036-b4f2-dbe53926924f

kevinkofler 17 years ago
parent
commit
0da2361535
5 changed files with 18 additions and 32 deletions
  1. 1 1
      ktigcc/newsdlg.ui
  2. 6 0
      ktigcc/programoutput.ui
  3. 10 29
      ktigcc/toolsdlg.cpp
  4. 0 1
      ktigcc/toolsdlg.h
  5. 1 1
      ktigcc/wordlist.ui

+ 1 - 1
ktigcc/newsdlg.ui

@@ -26,7 +26,7 @@
    <item>
     <widget class="K3ListBox" name="newsListBox" >
      <property name="selectionMode" >
-      <enum>Q3ListBox::Single</enum>
+      <enum>Q3ListBox::NoSelection</enum>
      </property>
     </widget>
    </item>

+ 6 - 0
ktigcc/programoutput.ui

@@ -26,6 +26,12 @@
      <property name="tabChangesFocus" >
       <bool>true</bool>
      </property>
+     <property name="lineWrapMode" >
+      <enum>QTextEdit::NoWrap</enum>
+     </property>
+     <property name="acceptRichText" >
+      <bool>false</bool>
+     </property>
     </widget>
    </item>
    <item>

+ 10 - 29
ktigcc/toolsdlg.cpp

@@ -27,11 +27,15 @@
 #include "ktigcc.h"
 #include "toolprops.h"
 
-void ToolsDialog::init()
+ToolsDialog::ToolsDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
+    : QDialog(parent, name, modal, fl)
 {
+  setupUi(this);
   tempTools=tools;
   listView->clear();
   listView->setSorting(-1);
+  listView->header()->setClickEnabled(false);
+  listView->header()->setResizeEnabled(false);
   Tools::iterator it;
   for(it=tempTools.begin(); it!=tempTools.end(); ++it)
     new K3ListViewItem(listView,listView->lastItem(),(*it).title,
@@ -39,6 +43,10 @@ void ToolsDialog::init()
                       (*it).runInTerminal?"Yes":"No");
 }
 
+ToolsDialog::~ToolsDialog()
+{
+}
+
 void ToolsDialog::addButton_clicked()
 {
   toolIndex=-1;
@@ -85,35 +93,8 @@ void ToolsDialog::accept()
   QDialog::accept();
 }
 
-/*
- *  Constructs a ToolsDialog as a child of 'parent', with the
- *  name 'name' and widget flags set to 'f'.
- *
- *  The dialog will by default be modeless, unless you set 'modal' to
- *  true to construct a modal dialog.
- */
-ToolsDialog::ToolsDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
-    : QDialog(parent, name, modal, fl)
-{
-    setupUi(this);
-
-    init();
-}
-
-/*
- *  Destroys the object and frees any allocated resources
- */
-ToolsDialog::~ToolsDialog()
-{
-    // no need to delete child widgets, Qt does it all for us
-}
-
-/*
- *  Sets the strings of the subwidgets using the current
- *  language.
- */
 void ToolsDialog::languageChange()
 {
-    retranslateUi(this);
+  retranslateUi(this);
 }
 

+ 0 - 1
ktigcc/toolsdlg.h

@@ -31,7 +31,6 @@ public:
     ~ToolsDialog();
 
 public slots:
-    virtual void init();
     virtual void addButton_clicked();
     virtual void editButton_clicked();
     virtual void removeButton_clicked();

+ 1 - 1
ktigcc/wordlist.ui

@@ -107,7 +107,7 @@
       <enum>Qt::Vertical</enum>
      </property>
      <property name="sizeType" >
-      <enum>QSizePolicy::Expanding</enum>
+      <enum>QSizePolicy::Preferred</enum>
      </property>
      <property name="sizeHint" >
       <size>