Remove uilib and QtUiTools from QtBase

The code gets moved into the qttools repository,
where it belongs naturally.

Change-Id: Ia50bfe212ead3365d5c3bcb24d2c5e92e2e9de8e
bb10
Lars Knoll 2011-09-13 14:38:26 +02:00
parent e3990c358a
commit f9748f8cce
233 changed files with 2 additions and 52574 deletions

2
.gitignore vendored
View File

@ -275,8 +275,6 @@ work
#generated module def and version header files
mkspecs/modules/qt_*.pri
mkspecs/qmodule.pri
src/uitools/qtuitoolsversion.h
tools/uilib/qtdesignerversion.h
#unit tests executables

View File

@ -27,7 +27,6 @@ SUBDIRS = \
tools \
tutorials \
widgets \
uitools \
touch \
gestures
}
@ -41,7 +40,6 @@ symbian: SUBDIRS = \
draganddrop \
mainwindows \
sql \
uitools \
animation \
gestures \
xml

View File

@ -1,65 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
** the names of its contributors may be used to endorse or promote
** products derived from this software without specific prior written
** permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtWidgets>
#include "calculatorform.h"
//! [0]
CalculatorForm::CalculatorForm(QWidget *parent)
: QWidget(parent)
{
setupUi(this);
}
//! [0]
//! [1]
void CalculatorForm::on_inputSpinBox1_valueChanged(int value)
{
outputWidget->setText(QString::number(value + inputSpinBox2->value()));
}
//! [1]
//! [2]
void CalculatorForm::on_inputSpinBox2_valueChanged(int value)
{
outputWidget->setText(QString::number(value + inputSpinBox1->value()));
}
//! [2]

View File

@ -1,62 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
** the names of its contributors may be used to endorse or promote
** products derived from this software without specific prior written
** permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef CALCULATORFORM_H
#define CALCULATORFORM_H
//! [0]
#include "ui_calculatorform.h"
//! [0]
//! [1]
class CalculatorForm : public QWidget, private Ui::CalculatorForm
{
Q_OBJECT
public:
CalculatorForm(QWidget *parent = 0);
private slots:
void on_inputSpinBox1_valueChanged(int value);
void on_inputSpinBox2_valueChanged(int value);
};
//! [1]
#endif

View File

@ -1,303 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>CalculatorForm</class>
<widget class="QWidget" name="CalculatorForm" >
<property name="objectName" >
<string notr="true" >CalculatorForm</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>276</width>
<height>98</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Calculator Builder</string>
</property>
<layout class="QGridLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="objectName" >
<string notr="true" >label</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>45</width>
<height>19</height>
</rect>
</property>
<property name="text" >
<string>Input 1</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="inputSpinBox1" >
<property name="objectName" >
<string notr="true" >inputSpinBox1</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>26</y>
<width>45</width>
<height>25</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3" >
<property name="objectName" >
<string notr="true" >label_3</string>
</property>
<property name="geometry" >
<rect>
<x>54</x>
<y>1</y>
<width>7</width>
<height>52</height>
</rect>
</property>
<property name="text" >
<string>+</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2" >
<property name="objectName" >
<string notr="true" >label_2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>45</width>
<height>19</height>
</rect>
</property>
<property name="text" >
<string>Input 2</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="inputSpinBox2" >
<property name="objectName" >
<string notr="true" >inputSpinBox2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>26</y>
<width>45</width>
<height>25</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3_2" >
<property name="objectName" >
<string notr="true" >label_3_2</string>
</property>
<property name="geometry" >
<rect>
<x>120</x>
<y>1</y>
<width>7</width>
<height>52</height>
</rect>
</property>
<property name="text" >
<string>=</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2_2_2" >
<property name="objectName" >
<string notr="true" >label_2_2_2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>37</width>
<height>17</height>
</rect>
</property>
<property name="text" >
<string>Output</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="outputWidget" >
<property name="objectName" >
<string notr="true" >outputWidget</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>24</y>
<width>37</width>
<height>27</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
<property name="text" >
<string>0</string>
</property>
<property name="alignment" >
<set>Qt::AlignAbsolute|Qt::AlignBottom|Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignHorizontal_Mask|Qt::AlignJustify|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing|Qt::AlignVCenter|Qt::AlignVertical_Mask</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="1" column="0" >
<spacer>
<property name="objectName" >
<string notr="true" >verticalSpacer</string>
</property>
<property name="geometry" >
<rect>
<x>85</x>
<y>69</y>
<width>20</width>
<height>20</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<spacer>
<property name="objectName" >
<string notr="true" >horizontalSpacer</string>
</property>
<property name="geometry" >
<rect>
<x>188</x>
<y>26</y>
<width>79</width>
<height>20</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

View File

@ -1,56 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
** the names of its contributors may be used to endorse or promote
** products derived from this software without specific prior written
** permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QApplication>
#include "calculatorform.h"
//! [0]
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
CalculatorForm calculator;
#if defined(Q_OS_SYMBIAN)
calculator.showMaximized();
#else
calculator.show();
#endif
return app.exec();
}
//! [0]

View File

@ -1,11 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Multiple Inheritance
Exec=/opt/usr/bin/multipleinheritance
Icon=multipleinheritance
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

View File

@ -1,19 +0,0 @@
#! [0]
SOURCES = calculatorform.cpp main.cpp
HEADERS = calculatorform.h
FORMS = calculatorform.ui
#! [0]
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/uitools/multipleinheritance
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/uitools/multipleinheritance
INSTALLS += target sources
symbian {
TARGET.UID3 = 0xA000D7C1
CONFIG += qt_example
}
QT += widgets
maemo5: CONFIG += qt_example

View File

@ -1,9 +0,0 @@
These forms are processed at run-time to produce dynamically-generated user interfaces.
In order to generate a form at run-time, a resource file containing a UI file is needed.
Applications that use the form handling classes need to be configured to be built against
the QtUiTools module. This is done by including the following declaration in a qmake project
file to ensure that the application is compiled and linked appropriately. A form loader object,
provided by the QUiLoader class, is used to construct the user interface. This user interface
can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form
stored in a project's resources. The QUiLoader::load() function takes the user interface
description contained in the file and constructs the form widget.

View File

@ -1,89 +0,0 @@
<ui version="4.0" >
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>378</width>
<height>158</height>
</rect>
</property>
<property name="windowTitle" >
<string>Find Text</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QLineEdit" name="lineEdit" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="searchLabel" >
<property name="text" >
<string>&amp;Keyword:</string>
</property>
<property name="buddy" >
<cstring>lineEdit</cstring>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="findButton" >
<property name="text" >
<string>&amp;Find</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTextEdit" name="textEdit" />
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>lineEdit</sender>
<signal>returnPressed()</signal>
<receiver>findButton</receiver>
<slot>animateClick()</slot>
<hints>
<hint type="sourcelabel" >
<x>261</x>
<y>17</y>
</hint>
<hint type="destinationlabel" >
<x>320</x>
<y>17</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,55 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
** the names of its contributors may be used to endorse or promote
** products derived from this software without specific prior written
** permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QApplication>
#include "textfinder.h"
//! [0]
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(textfinder);
QApplication app(argc, argv);
TextFinder *textFinder = new TextFinder;
textFinder->show();
return app.exec();
}
//! [0]

View File

@ -1,155 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
** the names of its contributors may be used to endorse or promote
** products derived from this software without specific prior written
** permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtUiTools>
#include <QtWidgets>
#include "textfinder.h"
//! [0]
TextFinder::TextFinder(QWidget *parent)
: QWidget(parent)
{
QWidget *formWidget = loadUiFile();
//! [1]
ui_findButton = findChild<QPushButton*>("findButton");
ui_textEdit = findChild<QTextEdit*>("textEdit");
ui_lineEdit = findChild<QLineEdit*>("lineEdit");
//! [0] //! [1]
//! [2]
QMetaObject::connectSlotsByName(this);
//! [2]
//! [3a]
loadTextFile();
//! [3a]
//! [3b]
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(formWidget);
setLayout(layout);
//! [3b]
//! [3c]
setWindowTitle(tr("Text Finder"));
isFirstTime = true;
}
//! [3c]
//! [4]
QWidget* TextFinder::loadUiFile()
{
QUiLoader loader;
QFile file(":/forms/textfinder.ui");
file.open(QFile::ReadOnly);
QWidget *formWidget = loader.load(&file, this);
file.close();
return formWidget;
}
//! [4]
//! [5]
void TextFinder::loadTextFile()
{
QFile inputFile(":/forms/input.txt");
inputFile.open(QIODevice::ReadOnly);
QTextStream in(&inputFile);
QString line = in.readAll();
inputFile.close();
ui_textEdit->append(line);
ui_textEdit->setUndoRedoEnabled(false);
ui_textEdit->setUndoRedoEnabled(true);
}
//! [5]
//! [6] //! [7]
void TextFinder::on_findButton_clicked()
{
QString searchString = ui_lineEdit->text();
QTextDocument *document = ui_textEdit->document();
bool found = false;
if (isFirstTime == false)
document->undo();
if (searchString.isEmpty()) {
QMessageBox::information(this, tr("Empty Search Field"),
"The search field is empty. Please enter a word and click Find.");
} else {
QTextCursor highlightCursor(document);
QTextCursor cursor(document);
cursor.beginEditBlock();
//! [6]
QTextCharFormat plainFormat(highlightCursor.charFormat());
QTextCharFormat colorFormat = plainFormat;
colorFormat.setForeground(Qt::red);
while (!highlightCursor.isNull() && !highlightCursor.atEnd()) {
highlightCursor = document->find(searchString, highlightCursor, QTextDocument::FindWholeWords);
if (!highlightCursor.isNull()) {
found = true;
highlightCursor.movePosition(QTextCursor::WordRight,
QTextCursor::KeepAnchor);
highlightCursor.mergeCharFormat(colorFormat);
}
}
//! [8]
cursor.endEditBlock();
//! [7] //! [9]
isFirstTime = false;
if (found == false) {
QMessageBox::information(this, tr("Word Not Found"),
"Sorry, the word cannot be found.");
}
}
}
//! [8] //! [9]

View File

@ -1,11 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Text Finder
Exec=/opt/usr/bin/textfinder
Icon=textfinder
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

View File

@ -1,74 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
** the names of its contributors may be used to endorse or promote
** products derived from this software without specific prior written
** permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef TEXTFINDER_H
#define TEXTFINDER_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QPushButton;
class QTextEdit;
class QLineEdit;
QT_END_NAMESPACE
//! [0]
class TextFinder : public QWidget
{
Q_OBJECT
public:
TextFinder(QWidget *parent = 0);
private slots:
void on_findButton_clicked();
private:
QWidget* loadUiFile();
void loadTextFile();
QPushButton *ui_findButton;
QTextEdit *ui_textEdit;
QLineEdit *ui_lineEdit;
bool isFirstTime;
};
//! [0]
#endif

View File

@ -1,17 +0,0 @@
CONFIG += uitools
HEADERS = textfinder.h
RESOURCES = textfinder.qrc
SOURCES = textfinder.cpp main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/uitools/textfinder
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro forms
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/uitools/textfinder
INSTALLS += target sources
symbian: CONFIG += qt_example
QT += widgets
maemo5: CONFIG += qt_example
symbian: warning(This example does not work on Symbian platform)
simulator: warning(This example does not work on Simulator platform)

View File

@ -1,6 +0,0 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>forms/textfinder.ui</file>
<file>forms/input.txt</file>
</qresource>
</RCC>

View File

@ -1,14 +0,0 @@
TEMPLATE = subdirs
SUBDIRS = multipleinheritance
!wince*:!symbian:contains(QT_BUILD_PARTS, tools): SUBDIRS += textfinder
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/uitools
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS uitools.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/uitools
INSTALLS += target sources
symbian: CONFIG += qt_example
QT += widgets
maemo5: CONFIG += qt_example

View File

@ -1,13 +0,0 @@
QT.uilib.VERSION = 5.0.0
QT.uilib.MAJOR_VERSION = 5
QT.uilib.MINOR_VERSION = 0
QT.uilib.PATCH_VERSION = 0
QT.uilib.name = QtUiLib
QT.uilib.bins = $$QT_MODULE_BIN_BASE
QT.uilib.includes = $$QT_MODULE_INCLUDE_BASE/QtDesigner
QT.uilib.private_includes = $$QT_MODULE_INCLUDE_BASE/QtDesigner/$$QT.uilib.VERSION
QT.uilib.sources = $$QT_MODULE_BASE/tools/uilib
QT.uilib.plugins = $$QT_MODULE_PLUGIN_BASE
QT.uilib.imports = $$QT_MODULE_IMPORT_BASE
QT.uilib.depends = xml

View File

@ -1,17 +0,0 @@
QT.uitools.VERSION = 5.0.0
QT.uitools.MAJOR_VERSION = 5
QT.uitools.MINOR_VERSION = 0
QT.uitools.PATCH_VERSION = 0
QT.uitools.name = QtUiTools
QT.uitools.bins = $$QT_MODULE_BIN_BASE
QT.uitools.includes = $$QT_MODULE_INCLUDE_BASE/QtUiTools
QT.uitools.private_includes = $$QT_MODULE_INCLUDE_BASE/QtUiTools/$$QT.uitools.VERSION
QT.uitools.sources = $$QT_MODULE_BASE/src/uitools
QT.uitools.libs = $$QT_MODULE_LIB_BASE
QT.uitools.plugins = $$QT_MODULE_PLUGIN_BASE
QT.uitools.imports = $$QT_MODULE_IMPORT_BASE
QT.uitools.depends = xml
QT.uitools.DEFINES = QT_UITOOLS_LIB
QT_CONFIG += uitools

View File

@ -10,7 +10,7 @@ SRC_SUBDIRS += src_corelib
!cross_compile {
win32:!wince*: SRC_SUBDIRS += src_tools_idc
}
SRC_SUBDIRS += src_network src_sql src_gui src_xml src_uitools src_widgets src_printsupport src_testlib src_platformsupport
SRC_SUBDIRS += src_network src_sql src_gui src_xml src_widgets src_printsupport src_testlib src_platformsupport
nacl: SRC_SUBDIRS -= src_network src_testlib
!symbian:contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus
@ -36,8 +36,6 @@ src_v8.subdir = $$QT_SOURCE_TREE/src/v8
src_v8.target = sub-v8
src_xml.subdir = $$QT_SOURCE_TREE/src/xml
src_xml.target = sub-xml
src_uitools.subdir = $$QT_SOURCE_TREE/src/uitools
src_uitools.target = sub-uitools
src_dbus.subdir = $$QT_SOURCE_TREE/src/dbus
src_dbus.target = sub-dbus
src_gui.subdir = $$QT_SOURCE_TREE/src/gui
@ -68,7 +66,6 @@ src_platformsupport.target = sub-platformsupport
src_widgets.depends = src_corelib src_gui src_tools_uic
embedded: src_gui.depends += src_network
src_xml.depends = src_corelib
src_uitools.depends = src_corelib src_widgets
src_dbus.depends = src_corelib src_xml
src_network.depends = src_corelib
src_opengl.depends = src_gui src_widgets

View File

@ -1078,7 +1078,6 @@ QT_CLASS_LIB(QDoubleValidator, QtWidgets, qvalidator.h)
QT_CLASS_LIB(QRegExpValidator, QtWidgets, qvalidator.h)
QT_CLASS_LIB(QWorkspace, QtWidgets, qworkspace.h)
QT_CLASS_LIB(QScriptEngineDebugger, QtScriptTools, qscriptenginedebugger.h)
QT_CLASS_LIB(QUiLoader, QtUiTools, quiloader.h)
QT_CLASS_LIB(QDesignerComponents, QtDesigner, qdesigner_components.h)
QT_CLASS_LIB(QExtensionFactory, QtDesigner, default_extensionfactory.h)
QT_CLASS_LIB(QAbstractExtensionFactory, QtDesigner, extension.h)

View File

@ -1,954 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "quiloader.h"
#include "quiloader_p.h"
#include "customwidget.h"
#include <formbuilder.h>
#include <formbuilderextra_p.h>
#include <textbuilder_p.h>
#include <ui4_p.h>
#include <QtCore/qdebug.h>
#include <QtWidgets/QAction>
#include <QtWidgets/QActionGroup>
#include <QtWidgets/QApplication>
#include <QtCore/QDir>
#include <QtCore/QLibraryInfo>
#include <QtWidgets/QLayout>
#include <QtWidgets/QWidget>
#include <QtCore/QMap>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QTableWidget>
#include <QtWidgets/QToolBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFontComboBox>
QT_BEGIN_NAMESPACE
typedef QMap<QString, bool> widget_map;
Q_GLOBAL_STATIC(widget_map, g_widgets)
class QUiLoader;
class QUiLoaderPrivate;
#ifdef QFORMINTERNAL_NAMESPACE
namespace QFormInternal
{
#endif
class TranslatingTextBuilder : public QTextBuilder
{
public:
TranslatingTextBuilder(bool trEnabled, const QByteArray &className) :
m_trEnabled(trEnabled), m_className(className) {}
virtual QVariant loadText(const DomProperty *icon) const;
virtual QVariant toNativeValue(const QVariant &value) const;
private:
bool m_trEnabled;
QByteArray m_className;
};
QVariant TranslatingTextBuilder::loadText(const DomProperty *text) const
{
const DomString *str = text->elementString();
if (!str)
return QVariant();
if (str->hasAttributeNotr()) {
const QString notr = str->attributeNotr();
if (notr == QLatin1String("true") || notr == QLatin1String("yes"))
return QVariant::fromValue(str->text());
}
QUiTranslatableStringValue strVal;
strVal.setValue(str->text().toUtf8());
if (str->hasAttributeComment())
strVal.setComment(str->attributeComment().toUtf8());
return QVariant::fromValue(strVal);
}
QVariant TranslatingTextBuilder::toNativeValue(const QVariant &value) const
{
if (value.canConvert<QUiTranslatableStringValue>()) {
QUiTranslatableStringValue tsv = qvariant_cast<QUiTranslatableStringValue>(value);
if (!m_trEnabled)
return QString::fromUtf8(tsv.value().data());
return QVariant::fromValue(
QApplication::translate(m_className, tsv.value(), tsv.comment(),
QCoreApplication::UnicodeUTF8));
}
if (value.canConvert<QString>())
return QVariant::fromValue(qvariant_cast<QString>(value));
return value;
}
// This is "exported" to linguist
const QUiItemRolePair qUiItemRoles[] = {
{ Qt::DisplayRole, Qt::DisplayPropertyRole },
#ifndef QT_NO_TOOLTIP
{ Qt::ToolTipRole, Qt::ToolTipPropertyRole },
#endif
#ifndef QT_NO_STATUSTIP
{ Qt::StatusTipRole, Qt::StatusTipPropertyRole },
#endif
#ifndef QT_NO_WHATSTHIS
{ Qt::WhatsThisRole, Qt::WhatsThisPropertyRole },
#endif
{ -1 , -1 }
};
static void recursiveReTranslate(QTreeWidgetItem *item, const QByteArray &class_name)
{
const QUiItemRolePair *irs = qUiItemRoles;
int cnt = item->columnCount();
for (int i = 0; i < cnt; ++i) {
for (unsigned j = 0; irs[j].shadowRole >= 0; j++) {
QVariant v = item->data(i, irs[j].shadowRole);
if (v.isValid()) {
QUiTranslatableStringValue tsv = qvariant_cast<QUiTranslatableStringValue>(v);
const QString text = QApplication::translate(class_name,
tsv.value(), tsv.comment(),
QCoreApplication::UnicodeUTF8);
item->setData(i, irs[j].realRole, text);
}
}
}
cnt = item->childCount();
for (int i = 0; i < cnt; ++i)
recursiveReTranslate(item->child(i), class_name);
}
template<typename T>
static void reTranslateWidgetItem(T *item, const QByteArray &class_name)
{
const QUiItemRolePair *irs = qUiItemRoles;
for (unsigned j = 0; irs[j].shadowRole >= 0; j++) {
QVariant v = item->data(irs[j].shadowRole);
if (v.isValid()) {
QUiTranslatableStringValue tsv = qvariant_cast<QUiTranslatableStringValue>(v);
const QString text = QApplication::translate(class_name,
tsv.value(), tsv.comment(),
QCoreApplication::UnicodeUTF8);
item->setData(irs[j].realRole, text);
}
}
}
static void reTranslateTableItem(QTableWidgetItem *item, const QByteArray &class_name)
{
if (item)
reTranslateWidgetItem(item, class_name);
}
#define RETRANSLATE_SUBWIDGET_PROP(mainWidget, setter, propName) \
do { \
QVariant v = mainWidget->widget(i)->property(propName); \
if (v.isValid()) { \
QUiTranslatableStringValue tsv = qvariant_cast<QUiTranslatableStringValue>(v); \
const QString text = QApplication::translate(m_className, \
tsv.value(), tsv.comment(), \
QCoreApplication::UnicodeUTF8); \
mainWidget->setter(i, text); \
} \
} while (0)
class TranslationWatcher: public QObject
{
Q_OBJECT
public:
TranslationWatcher(QObject *parent, const QByteArray &className):
QObject(parent),
m_className(className)
{
}
virtual bool eventFilter(QObject *o, QEvent *event)
{
if (event->type() == QEvent::LanguageChange) {
foreach (const QByteArray &prop, o->dynamicPropertyNames()) {
if (prop.startsWith(PROP_GENERIC_PREFIX)) {
const QByteArray propName = prop.mid(sizeof(PROP_GENERIC_PREFIX) - 1);
const QUiTranslatableStringValue tsv =
qvariant_cast<QUiTranslatableStringValue>(o->property(prop));
const QString text = QApplication::translate(m_className,
tsv.value(), tsv.comment(),
QCoreApplication::UnicodeUTF8);
o->setProperty(propName, text);
}
}
if (0) {
#ifndef QT_NO_TABWIDGET
} else if (QTabWidget *tabw = qobject_cast<QTabWidget*>(o)) {
const int cnt = tabw->count();
for (int i = 0; i < cnt; ++i) {
RETRANSLATE_SUBWIDGET_PROP(tabw, setTabText, PROP_TABPAGETEXT);
# ifndef QT_NO_TOOLTIP
RETRANSLATE_SUBWIDGET_PROP(tabw, setTabToolTip, PROP_TABPAGETOOLTIP);
# endif
# ifndef QT_NO_WHATSTHIS
RETRANSLATE_SUBWIDGET_PROP(tabw, setTabWhatsThis, PROP_TABPAGEWHATSTHIS);
# endif
}
#endif
#ifndef QT_NO_LISTWIDGET
} else if (QListWidget *listw = qobject_cast<QListWidget*>(o)) {
const int cnt = listw->count();
for (int i = 0; i < cnt; ++i)
reTranslateWidgetItem(listw->item(i), m_className);
#endif
#ifndef QT_NO_TREEWIDGET
} else if (QTreeWidget *treew = qobject_cast<QTreeWidget*>(o)) {
if (QTreeWidgetItem *item = treew->headerItem())
recursiveReTranslate(item, m_className);
const int cnt = treew->topLevelItemCount();
for (int i = 0; i < cnt; ++i) {
QTreeWidgetItem *item = treew->topLevelItem(i);
recursiveReTranslate(item, m_className);
}
#endif
#ifndef QT_NO_TABLEWIDGET
} else if (QTableWidget *tablew = qobject_cast<QTableWidget*>(o)) {
const int row_cnt = tablew->rowCount();
const int col_cnt = tablew->columnCount();
for (int j = 0; j < col_cnt; ++j)
reTranslateTableItem(tablew->horizontalHeaderItem(j), m_className);
for (int i = 0; i < row_cnt; ++i) {
reTranslateTableItem(tablew->verticalHeaderItem(i), m_className);
for (int j = 0; j < col_cnt; ++j)
reTranslateTableItem(tablew->item(i, j), m_className);
}
#endif
#ifndef QT_NO_COMBOBOX
} else if (QComboBox *combow = qobject_cast<QComboBox*>(o)) {
if (!qobject_cast<QFontComboBox*>(o)) {
const int cnt = combow->count();
for (int i = 0; i < cnt; ++i) {
const QVariant v = combow->itemData(i, Qt::DisplayPropertyRole);
if (v.isValid()) {
QUiTranslatableStringValue tsv = qvariant_cast<QUiTranslatableStringValue>(v);
const QString text = QApplication::translate(m_className,
tsv.value(), tsv.comment(),
QCoreApplication::UnicodeUTF8);
combow->setItemText(i, text);
}
}
}
#endif
#ifndef QT_NO_TOOLBOX
} else if (QToolBox *toolw = qobject_cast<QToolBox*>(o)) {
const int cnt = toolw->count();
for (int i = 0; i < cnt; ++i) {
RETRANSLATE_SUBWIDGET_PROP(toolw, setItemText, PROP_TOOLITEMTEXT);
# ifndef QT_NO_TOOLTIP
RETRANSLATE_SUBWIDGET_PROP(toolw, setItemToolTip, PROP_TOOLITEMTOOLTIP);
# endif
}
#endif
}
}
return false;
}
private:
QByteArray m_className;
};
class FormBuilderPrivate: public QFormBuilder
{
friend class QT_PREPEND_NAMESPACE(QUiLoader);
friend class QT_PREPEND_NAMESPACE(QUiLoaderPrivate);
typedef QFormBuilder ParentClass;
public:
QUiLoader *loader;
bool dynamicTr;
bool trEnabled;
FormBuilderPrivate(): loader(0), dynamicTr(false), trEnabled(true), m_trwatch(0) {}
QWidget *defaultCreateWidget(const QString &className, QWidget *parent, const QString &name)
{
return ParentClass::createWidget(className, parent, name);
}
QLayout *defaultCreateLayout(const QString &className, QObject *parent, const QString &name)
{
return ParentClass::createLayout(className, parent, name);
}
QAction *defaultCreateAction(QObject *parent, const QString &name)
{
return ParentClass::createAction(parent, name);
}
QActionGroup *defaultCreateActionGroup(QObject *parent, const QString &name)
{
return ParentClass::createActionGroup(parent, name);
}
virtual QWidget *createWidget(const QString &className, QWidget *parent, const QString &name)
{
if (QWidget *widget = loader->createWidget(className, parent, name)) {
widget->setObjectName(name);
return widget;
}
return 0;
}
virtual QLayout *createLayout(const QString &className, QObject *parent, const QString &name)
{
if (QLayout *layout = loader->createLayout(className, parent, name)) {
layout->setObjectName(name);
return layout;
}
return 0;
}
virtual QActionGroup *createActionGroup(QObject *parent, const QString &name)
{
if (QActionGroup *actionGroup = loader->createActionGroup(parent, name)) {
actionGroup->setObjectName(name);
return actionGroup;
}
return 0;
}
virtual QAction *createAction(QObject *parent, const QString &name)
{
if (QAction *action = loader->createAction(parent, name)) {
action->setObjectName(name);
return action;
}
return 0;
}
virtual void applyProperties(QObject *o, const QList<DomProperty*> &properties);
virtual QWidget *create(DomUI *ui, QWidget *parentWidget);
virtual QWidget *create(DomWidget *ui_widget, QWidget *parentWidget);
virtual bool addItem(DomWidget *ui_widget, QWidget *widget, QWidget *parentWidget);
private:
QByteArray m_class;
TranslationWatcher *m_trwatch;
};
static QString convertTranslatable(const DomProperty *p, const QByteArray &className,
QUiTranslatableStringValue *strVal)
{
if (p->kind() != DomProperty::String)
return QString();
const DomString *dom_str = p->elementString();
if (!dom_str)
return QString();
if (dom_str->hasAttributeNotr()) {
const QString notr = dom_str->attributeNotr();
if (notr == QLatin1String("yes") || notr == QLatin1String("true"))
return QString();
}
strVal->setValue(dom_str->text().toUtf8());
strVal->setComment(dom_str->attributeComment().toUtf8());
if (strVal->value().isEmpty() && strVal->comment().isEmpty())
return QString();
return QApplication::translate(className,
strVal->value(), strVal->comment(),
QCoreApplication::UnicodeUTF8);
}
void FormBuilderPrivate::applyProperties(QObject *o, const QList<DomProperty*> &properties)
{
typedef QList<DomProperty*> DomPropertyList;
QFormBuilder::applyProperties(o, properties);
if (!m_trwatch)
m_trwatch = new TranslationWatcher(o, m_class);
if (properties.empty())
return;
// Unlike string item roles, string properties are not loaded via the textBuilder
// (as they are "shadowed" by the property sheets in designer). So do the initial
// translation here.
bool anyTrs = false;
foreach (const DomProperty *p, properties) {
QUiTranslatableStringValue strVal;
const QString text = convertTranslatable(p, m_class, &strVal);
if (text.isEmpty())
continue;
const QByteArray name = p->attributeName().toUtf8();
if (dynamicTr) {
o->setProperty(PROP_GENERIC_PREFIX + name, QVariant::fromValue(strVal));
anyTrs = trEnabled;
}
o->setProperty(name, text);
}
if (anyTrs)
o->installEventFilter(m_trwatch);
}
QWidget *FormBuilderPrivate::create(DomUI *ui, QWidget *parentWidget)
{
m_class = ui->elementClass().toUtf8();
m_trwatch = 0;
setTextBuilder(new TranslatingTextBuilder(trEnabled, m_class));
return QFormBuilder::create(ui, parentWidget);
}
QWidget *FormBuilderPrivate::create(DomWidget *ui_widget, QWidget *parentWidget)
{
QWidget *w = QFormBuilder::create(ui_widget, parentWidget);
if (w == 0)
return 0;
if (0) {
#ifndef QT_NO_TABWIDGET
} else if (qobject_cast<QTabWidget*>(w)) {
#endif
#ifndef QT_NO_LISTWIDGET
} else if (qobject_cast<QListWidget*>(w)) {
#endif
#ifndef QT_NO_TREEWIDGET
} else if (qobject_cast<QTreeWidget*>(w)) {
#endif
#ifndef QT_NO_TABLEWIDGET
} else if (qobject_cast<QTableWidget*>(w)) {
#endif
#ifndef QT_NO_COMBOBOX
} else if (qobject_cast<QComboBox*>(w)) {
if (qobject_cast<QFontComboBox*>(w))
return w;
#endif
#ifndef QT_NO_TOOLBOX
} else if (qobject_cast<QToolBox*>(w)) {
#endif
} else {
return w;
}
if (dynamicTr && trEnabled)
w->installEventFilter(m_trwatch);
return w;
}
#define TRANSLATE_SUBWIDGET_PROP(mainWidget, attribute, setter, propName) \
do { \
if (const DomProperty *p##attribute = attributes.value(strings.attribute)) { \
QUiTranslatableStringValue strVal; \
const QString text = convertTranslatable(p##attribute, m_class, &strVal); \
if (!text.isEmpty()) { \
if (dynamicTr) \
mainWidget->widget(i)->setProperty(propName, QVariant::fromValue(strVal)); \
mainWidget->setter(i, text); \
} \
} \
} while (0)
bool FormBuilderPrivate::addItem(DomWidget *ui_widget, QWidget *widget, QWidget *parentWidget)
{
if (parentWidget == 0)
return true;
if (!ParentClass::addItem(ui_widget, widget, parentWidget))
return false;
// Check special cases. First: Custom container
const QString className = QLatin1String(parentWidget->metaObject()->className());
if (!d->customWidgetAddPageMethod(className).isEmpty())
return true;
const QFormBuilderStrings &strings = QFormBuilderStrings::instance();
if (0) {
#ifndef QT_NO_TABWIDGET
} else if (QTabWidget *tabWidget = qobject_cast<QTabWidget*>(parentWidget)) {
const DomPropertyHash attributes = propertyMap(ui_widget->elementAttribute());
const int i = tabWidget->count() - 1;
TRANSLATE_SUBWIDGET_PROP(tabWidget, titleAttribute, setTabText, PROP_TABPAGETEXT);
# ifndef QT_NO_TOOLTIP
TRANSLATE_SUBWIDGET_PROP(tabWidget, toolTipAttribute, setTabToolTip, PROP_TABPAGETOOLTIP);
# endif
# ifndef QT_NO_WHATSTHIS
TRANSLATE_SUBWIDGET_PROP(tabWidget, whatsThisAttribute, setTabWhatsThis, PROP_TABPAGEWHATSTHIS);
# endif
#endif
#ifndef QT_NO_TOOLBOX
} else if (QToolBox *toolBox = qobject_cast<QToolBox*>(parentWidget)) {
const DomPropertyHash attributes = propertyMap(ui_widget->elementAttribute());
const int i = toolBox->count() - 1;
TRANSLATE_SUBWIDGET_PROP(toolBox, labelAttribute, setItemText, PROP_TOOLITEMTEXT);
# ifndef QT_NO_TOOLTIP
TRANSLATE_SUBWIDGET_PROP(toolBox, toolTipAttribute, setItemToolTip, PROP_TOOLITEMTOOLTIP);
# endif
#endif
}
return true;
}
#ifdef QFORMINTERNAL_NAMESPACE
}
#endif
class QUiLoaderPrivate
{
public:
#ifdef QFORMINTERNAL_NAMESPACE
QFormInternal::FormBuilderPrivate builder;
#else
FormBuilderPrivate builder;
#endif
void setupWidgetMap() const;
};
void QUiLoaderPrivate::setupWidgetMap() const
{
if (!g_widgets()->isEmpty())
return;
#define DECLARE_WIDGET(a, b) g_widgets()->insert(QLatin1String(#a), true);
#define DECLARE_LAYOUT(a, b)
#include "widgets.table"
#undef DECLARE_WIDGET
#undef DECLARE_WIDGET_1
#undef DECLARE_LAYOUT
}
/*!
\class QUiLoader
\inmodule QtUiTools
\brief The QUiLoader class enables standalone applications to
dynamically create user interfaces at run-time using the
information stored in UI files or specified in plugin paths.
In addition, you can customize or create your own user interface by
deriving your own loader class.
If you have a custom component or an application that embeds \QD, you can
also use the QFormBuilder class provided by the QtDesigner module to create
user interfaces from UI files.
The QUiLoader class provides a collection of functions allowing you to
create widgets based on the information stored in UI files (created
with \QD) or available in the specified plugin paths. The specified plugin
paths can be retrieved using the pluginPaths() function. Similarly, the
contents of a UI file can be retrieved using the load() function. For
example:
\snippet doc/src/snippets/quiloader/mywidget.cpp 0
By including the user interface in the form's resources (\c myform.qrc), we
ensure that it will be present at run-time:
\quotefile doc/src/snippets/quiloader/mywidget.qrc
The availableWidgets() function returns a QStringList with the class names
of the widgets available in the specified plugin paths. To create these
widgets, simply use the createWidget() function. For example:
\snippet doc/src/snippets/quiloader/main.cpp 0
To make a custom widget available to the loader, you can use the
addPluginPath() function; to remove all available widgets, you can call
the clearPluginPaths() function.
The createAction(), createActionGroup(), createLayout(), and createWidget()
functions are used internally by the QUiLoader class whenever it has to
create an action, action group, layout, or widget respectively. For that
reason, you can subclass the QUiLoader class and reimplement these
functions to intervene the process of constructing a user interface. For
example, you might want to have a list of the actions created when loading
a form or creating a custom widget.
For a complete example using the QUiLoader class, see the
\l{Calculator Builder Example}.
\sa QtUiTools, QFormBuilder
*/
/*!
Creates a form loader with the given \a parent.
*/
QUiLoader::QUiLoader(QObject *parent)
: QObject(parent), d_ptr(new QUiLoaderPrivate)
{
Q_D(QUiLoader);
d->builder.loader = this;
QStringList paths;
foreach (const QString &path, QApplication::libraryPaths()) {
QString libPath = path;
libPath += QDir::separator();
libPath += QLatin1String("designer");
paths.append(libPath);
}
d->builder.setPluginPath(paths);
}
/*!
Destroys the loader.
*/
QUiLoader::~QUiLoader()
{
}
/*!
Loads a form from the given \a device and creates a new widget with the
given \a parentWidget to hold its contents.
\sa createWidget(), errorString()
*/
QWidget *QUiLoader::load(QIODevice *device, QWidget *parentWidget)
{
Q_D(QUiLoader);
// QXmlStreamReader will report errors on open failure.
if (!device->isOpen())
device->open(QIODevice::ReadOnly|QIODevice::Text);
return d->builder.load(device, parentWidget);
}
/*!
Returns a list naming the paths in which the loader will search when
locating custom widget plugins.
\sa addPluginPath(), clearPluginPaths()
*/
QStringList QUiLoader::pluginPaths() const
{
Q_D(const QUiLoader);
return d->builder.pluginPaths();
}
/*!
Clears the list of paths in which the loader will search when locating
plugins.
\sa addPluginPath(), pluginPaths()
*/
void QUiLoader::clearPluginPaths()
{
Q_D(QUiLoader);
d->builder.clearPluginPaths();
}
/*!
Adds the given \a path to the list of paths in which the loader will search
when locating plugins.
\sa pluginPaths(), clearPluginPaths()
*/
void QUiLoader::addPluginPath(const QString &path)
{
Q_D(QUiLoader);
d->builder.addPluginPath(path);
}
/*!
Creates a new widget with the given \a parent and \a name using the class
specified by \a className. You can use this function to create any of the
widgets returned by the availableWidgets() function.
The function is also used internally by the QUiLoader class whenever it
creates a widget. Hence, you can subclass QUiLoader and reimplement this
function to intervene process of constructing a user interface or widget.
However, in your implementation, ensure that you call QUiLoader's version
first.
\sa availableWidgets(), load()
*/
QWidget *QUiLoader::createWidget(const QString &className, QWidget *parent, const QString &name)
{
Q_D(QUiLoader);
return d->builder.defaultCreateWidget(className, parent, name);
}
/*!
Creates a new layout with the given \a parent and \a name using the class
specified by \a className.
The function is also used internally by the QUiLoader class whenever it
creates a widget. Hence, you can subclass QUiLoader and reimplement this
function to intervene process of constructing a user interface or widget.
However, in your implementation, ensure that you call QUiLoader's version
first.
\sa createWidget(), load()
*/
QLayout *QUiLoader::createLayout(const QString &className, QObject *parent, const QString &name)
{
Q_D(QUiLoader);
return d->builder.defaultCreateLayout(className, parent, name);
}
/*!
Creates a new action group with the given \a parent and \a name.
The function is also used internally by the QUiLoader class whenever it
creates a widget. Hence, you can subclass QUiLoader and reimplement this
function to intervene process of constructing a user interface or widget.
However, in your implementation, ensure that you call QUiLoader's version
first.
\sa createAction(), createWidget(), load()
*/
QActionGroup *QUiLoader::createActionGroup(QObject *parent, const QString &name)
{
Q_D(QUiLoader);
return d->builder.defaultCreateActionGroup(parent, name);
}
/*!
Creates a new action with the given \a parent and \a name.
The function is also used internally by the QUiLoader class whenever it
creates a widget. Hence, you can subclass QUiLoader and reimplement this
function to intervene process of constructing a user interface or widget.
However, in your implementation, ensure that you call QUiLoader's version
first.
\sa createActionGroup(), createWidget(), load()
*/
QAction *QUiLoader::createAction(QObject *parent, const QString &name)
{
Q_D(QUiLoader);
return d->builder.defaultCreateAction(parent, name);
}
/*!
Returns a list naming all available widgets that can be built using the
createWidget() function, i.e all the widgets specified within the given
plugin paths.
\sa pluginPaths(), createWidget()
*/
QStringList QUiLoader::availableWidgets() const
{
Q_D(const QUiLoader);
d->setupWidgetMap();
widget_map available = *g_widgets();
foreach (QDesignerCustomWidgetInterface *plugin, d->builder.customWidgets()) {
available.insert(plugin->name(), true);
}
return available.keys();
}
/*!
\since 4.5
Returns a list naming all available layouts that can be built using the
createLayout() function
\sa createLayout()
*/
QStringList QUiLoader::availableLayouts() const
{
QStringList rc;
#define DECLARE_WIDGET(a, b)
#define DECLARE_LAYOUT(a, b) rc.push_back(QLatin1String(#a));
#include "widgets.table"
#undef DECLARE_WIDGET
#undef DECLARE_LAYOUT
return rc;
}
/*!
Sets the working directory of the loader to \a dir. The loader will look
for other resources, such as icons and resource files, in paths relative to
this directory.
\sa workingDirectory()
*/
void QUiLoader::setWorkingDirectory(const QDir &dir)
{
Q_D(QUiLoader);
d->builder.setWorkingDirectory(dir);
}
/*!
Returns the working directory of the loader.
\sa setWorkingDirectory()
*/
QDir QUiLoader::workingDirectory() const
{
Q_D(const QUiLoader);
return d->builder.workingDirectory();
}
/*!
\internal
\since 4.3
If \a enabled is true, the loader will be able to execute scripts.
Otherwise, execution of scripts will be disabled.
\sa isScriptingEnabled()
*/
void QUiLoader::setScriptingEnabled(bool enabled)
{
Q_D(QUiLoader);
d->builder.setScriptingEnabled(enabled);
}
/*!
\internal
\since 4.3
Returns true if execution of scripts is enabled; returns false otherwise.
\sa setScriptingEnabled()
*/
bool QUiLoader::isScriptingEnabled() const
{
Q_D(const QUiLoader);
return d->builder.isScriptingEnabled();
}
/*!
\since 4.5
If \a enabled is true, user interfaces loaded by this loader will
automatically retranslate themselves upon receiving a language change
event. Otherwise, the user interfaces will not be retranslated.
\sa isLanguageChangeEnabled()
*/
void QUiLoader::setLanguageChangeEnabled(bool enabled)
{
Q_D(QUiLoader);
d->builder.dynamicTr = enabled;
}
/*!
\since 4.5
Returns true if dynamic retranslation on language change is enabled;
returns false otherwise.
\sa setLanguageChangeEnabled()
*/
bool QUiLoader::isLanguageChangeEnabled() const
{
Q_D(const QUiLoader);
return d->builder.dynamicTr;
}
/*!
\internal
\since 4.5
If \a enabled is true, user interfaces loaded by this loader will be
translated. Otherwise, the user interfaces will not be translated.
\note This is orthogonal to languageChangeEnabled.
\sa isLanguageChangeEnabled(), setLanguageChangeEnabled()
*/
void QUiLoader::setTranslationEnabled(bool enabled)
{
Q_D(QUiLoader);
d->builder.trEnabled = enabled;
}
/*!
\internal
\since 4.5
Returns true if translation is enabled; returns false otherwise.
\sa setTranslationEnabled()
*/
bool QUiLoader::isTranslationEnabled() const
{
Q_D(const QUiLoader);
return d->builder.trEnabled;
}
/*!
Returns a human-readable description of the last error occurred in load().
\since 5.0
\sa load()
*/
QString QUiLoader::errorString() const
{
Q_D(const QUiLoader);
return d->builder.errorString();
}
QT_END_NAMESPACE
#include "quiloader.moc"

View File

@ -1,105 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QUILOADER_H
#define QUILOADER_H
#include <QtCore/QObject>
#include <QtCore/QScopedPointer>
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
class QWidget;
class QLayout;
class QAction;
class QActionGroup;
class QString;
class QIODevice;
class QDir;
class QUiLoaderPrivate;
class QUiLoader : public QObject
{
Q_OBJECT
public:
QUiLoader(QObject *parent = 0);
virtual ~QUiLoader();
QStringList pluginPaths() const;
void clearPluginPaths();
void addPluginPath(const QString &path);
QWidget *load(QIODevice *device, QWidget *parentWidget = 0);
QStringList availableWidgets() const;
QStringList availableLayouts() const;
virtual QWidget *createWidget(const QString &className, QWidget *parent = 0, const QString &name = QString());
virtual QLayout *createLayout(const QString &className, QObject *parent = 0, const QString &name = QString());
virtual QActionGroup *createActionGroup(QObject *parent = 0, const QString &name = QString());
virtual QAction *createAction(QObject *parent = 0, const QString &name = QString());
void setWorkingDirectory(const QDir &dir);
QDir workingDirectory() const;
void setScriptingEnabled(bool enabled);
bool isScriptingEnabled() const;
void setLanguageChangeEnabled(bool enabled);
bool isLanguageChangeEnabled() const;
void setTranslationEnabled(bool enabled);
bool isTranslationEnabled() const;
QString errorString() const;
private:
QScopedPointer<QUiLoaderPrivate> d_ptr;
Q_DECLARE_PRIVATE(QUiLoader)
Q_DISABLE_COPY(QUiLoader)
};
QT_END_NAMESPACE
QT_END_HEADER
#endif // QUILOADER_H

View File

@ -1,109 +0,0 @@
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QUILOADER_P_H
#define QUILOADER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtCore/QByteArray>
#include <QtCore/QMetaType>
// This file is here for use by the form preview in Linguist. If you change anything
// here or in the code which uses it, remember to adapt Linguist accordingly.
#define PROP_GENERIC_PREFIX "_q_notr_"
#define PROP_TOOLITEMTEXT "_q_toolItemText_notr"
#define PROP_TOOLITEMTOOLTIP "_q_toolItemToolTip_notr"
#define PROP_TABPAGETEXT "_q_tabPageText_notr"
#define PROP_TABPAGETOOLTIP "_q_tabPageToolTip_notr"
#define PROP_TABPAGEWHATSTHIS "_q_tabPageWhatsThis_notr"
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
class QUiTranslatableStringValue
{
public:
QByteArray value() const { return m_value; }
void setValue(const QByteArray &value) { m_value = value; }
QByteArray comment() const { return m_comment; }
void setComment(const QByteArray &comment) { m_comment = comment; }
private:
QByteArray m_value;
QByteArray m_comment;
};
struct QUiItemRolePair {
int realRole;
int shadowRole;
};
#ifdef QFORMINTERNAL_NAMESPACE
namespace QFormInternal
{
#endif
extern const QUiItemRolePair qUiItemRoles[];
#ifdef QFORMINTERNAL_NAMESPACE
}
#endif
QT_END_NAMESPACE
QT_END_HEADER
Q_DECLARE_METATYPE(QUiTranslatableStringValue)
#endif // QUILOADER_P_H

View File

@ -1,59 +0,0 @@
QPRO_PWD = $$PWD
TEMPLATE = lib
TARGET = $$qtLibraryTarget(QtUiTools)
QT = core
CONFIG += qt staticlib module
MODULE = uitools
MODULE_PRI = ../modules/qt_uitools.pri \
../modules/qt_uilib.pri
DESTDIR = $$QMAKE_LIBDIR_QT
symbian {
TARGET.UID3 = 0x2001E628
load(armcc_warnings)
}
win32|mac:!macx-xcode:CONFIG += debug_and_release build_all
DEFINES += QFORMINTERNAL_NAMESPACE QT_DESIGNER_STATIC QT_FORMBUILDER_NO_SCRIPT
isEmpty(QT_MAJOR_VERSION) {
VERSION=4.3.0
} else {
VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
}
load(qt_targets)
QMAKE_TARGET_PRODUCT = UiLoader
QMAKE_TARGET_DESCRIPTION = QUiLoader
include(../../tools/uilib/uilib.pri)
HEADERS += quiloader.h
SOURCES += quiloader.cpp
include($$QT_BUILD_TREE/include/QtUiTools/headers.pri, "", true)
quitools_headers.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
quitools_headers.path = $$[QT_INSTALL_HEADERS]/QtUiTools
quitools_private_headers.files = $$SYNCQT.PRIVATE_HEADER_FILES
quitools_private_headers.path = $$[QT_INSTALL_HEADERS]/QtUiTools/$$QT.uitools.VERSION/QtUiTools/private
INSTALLS += quitools_headers quitools_private_headers
# Uilib is from designer.
include($$QT_BUILD_TREE/include/QtDesigner/headers.pri, "", true)
quilib_headers.files = $$replace($$list($$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES), ^, ../../tools/uilib/)
quilib_headers.path = $$[QT_INSTALL_HEADERS]/QtDesigner
quilib_private_headers.files = $$replace($$list($$SYNCQT.PRIVATE_HEADER_FILES), ^, ../../tools/uilib/)
quilib_private_headers.path = $$[QT_INSTALL_HEADERS]/QtDesigner/$$QT.uilib.VERSION/QtDesigner/private
INSTALLS += quilib_headers quilib_private_headers
target.path=$$[QT_INSTALL_LIBS]
INSTALLS += target
unix|win32-g++* {
CONFIG += create_pc
QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/$$TARGET
QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
}

View File

@ -10,8 +10,6 @@
"QtNetwork" => "$basedir/src/network",
"QtTest" => "$basedir/src/testlib",
"QtDBus" => "$basedir/src/dbus",
"QtUiTools" => "$basedir/src/uitools",
"QtDesigner" => "$basedir/tools/uilib",
"QtPlatformSupport" => "$basedir/src/platformsupport",
);
%moduleheaders = ( # restrict the module headers to those found in relative path
@ -54,8 +52,6 @@
"network" => "#include <QtNetwork/QtNetwork>\n",
"opengl" => "#include <QtOpenGL/QtOpenGL>\n",
"xml" => "#include <QtXml/QtXml>\n",
"uitools" => "#include <QtUiTools/QtUiTools>\n",
"designer" => "#include <QtDesigner/QtDesigner>\n",
);
%modulepris = (
"QtCore" => "$basedir/src/modules/qt_core.pri",
@ -69,8 +65,6 @@
"QtTest" => "$basedir/src/modules/qt_testlib.pri",
"QtV8" => "$basedir/src/modules/qt_v8.pri",
"QtXml" => "$basedir/src/modules/qt_xml.pri",
"QtUiTools" => "$basedir/src/modules/qt_uitools.pri",
"QtDesigner" => "$basedir/src/modules/qt_uilib.pri",
"QtPlatformSupport" => "$basedir/src/modules/qt_platformsupport.pri",
);

View File

@ -59,8 +59,6 @@
#include <QtDBus/QtDBus>
#endif
#include <QtUiTools/QtUiTools>
#ifndef Q_OS_MAC
int main(int, char **)
{

View File

@ -1,7 +1,6 @@
load(qttest_p4)
SOURCES += tst_headersclean.cpp
QT = core network xml sql
CONFIG += uitools
contains(QT_CONFIG,dbus): QT += dbus
contains(QT_CONFIG,opengl): QT += opengl

View File

@ -54,8 +54,6 @@
#include <QtSql/QtSql>
#include <QtGui/QtGui>
#include <QtUiTools/QtUiTools>
#ifndef QT_NO_OPENGL
#include <QtOpenGL/QtOpenGL>
#endif
@ -72,4 +70,4 @@ public:
};
QTEST_MAIN(tst_HeadersClean)
#include "tst_headersclean.moc"
#include "tst_headersclean.moc"

View File

@ -1 +0,0 @@
tst_uiloader

View File

@ -1,93 +0,0 @@
-------------------------------------------------------------------------
TESTING WIDGETS DEFINED IN *.UI FILES (SCREENSHOT COMPARISON)
-------------------------------------------------------------------------
This test is based on dev/qt/tests/auto/atwrapper/
HOW TO RUN THE TESTS
Compile the necessary programs:
qmake
make
Now there should be an executable 'uiloader'.
Run the tests:
./uiloader
CONFIGURATION
The tests can be executed on different machines. For every machine there
is a config file <hostname>.ini.
If this file is not available the tests won't be run on the machine.
Example kayak.ini:
[General]
ftpBaseDir=/arthurtest
ftpHost=wartburg
ftpPass=anonymouspass
ftpUser=anonymous
output=testresults
[engines]
1\engine=uic
size=1
Don't modify the [engines] section. Later it will be used for styles. The
only thing you might want to modify is the ftpHost value. At the moment
wartburg is just a server on which we test the tests.
The actual test server is: kramer.troll.no
HOW IT WORKS
There are 3 important folders:
tst_uiloader/ Actual program executing the tests.
tst_screenshot/ Program to generate one *.png file out of *.ui
baseline/ This is a dir with *.ui files.
./uiloader (compiled from tst_uiloader) will use the tst_screenshot program
and the files in baseline/.
In order to generate screenshots the *.ui files in baseline/ will be used.
Therefore a folder testresults/ (specified in the config) will be
created/used.
Structure of testresults/:
|-- testresults
| `-- i686 Linux g++-4 full-config That's buildKey().
| `-- 4.5.0 Used Qt version.
| |-- uic Here are the generated images.
| |-- uic.baseline Baseline downloaded from server.
| |-- uic.diff Diff Images of failed tests.
| `-- uic.failed Generated images of failed tests.
If there is no baseline at the server the results in uic/ will be uploaded
as a new baseline (first run for your machine). So to create a new baseline
on the server you just need to remove your folders there.
On the server side there is a dir /arthurtest with following structure
(it will be created if it's not there):
|-- arthurtest
| `-- <your machines hostname>
| `-- <buildKey()>
| `-- <qt version>
| |-- uic.baseline Baseline.
| |-- uic.diff Here the local diffs will be uploaded.
| `-- uic.failed Here the local failed files will be uploaded.
After a test run the files in local uic.diff/ and uic.failed/ will be
uploaded to the server.
For every run the uic.diff/ and uic.failed/ on the local and remote machine
will be cleared in order to place new files there. On the local side uic/
gets cleared, too.

View File

@ -1,11 +0,0 @@
[General]
ftpBaseDir=/arthurtest
ftpHost=kramer-nokia.troll.no
ftpPass=anonymouspass
ftpUser=anonymous
output=testresults
threshold=20
[engines]
1\engine=uic
size=1

View File

@ -1,71 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="geometry" >
<rect>
<x>30</x>
<y>240</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,71 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="geometry" >
<rect>
<x>290</x>
<y>20</y>
<width>81</width>
<height>241</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,18 +0,0 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,27 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="objectName" >
<string notr="true" >MainWindow</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QMenuBar" name="menubar" />
<widget class="QWidget" name="centralwidget" />
<widget class="QStatusBar" name="statusbar" />
</widget>
<pixmapfunction></pixmapfunction>
<connections/>
</ui>

View File

@ -1,41 +0,0 @@
<ui version="4.0" >
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QLabel" name="Alabel" >
<property name="text" >
<string>A label</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>A Group Box</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton" >
<property name="text" >
<string>PushButton</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,112 +0,0 @@
<ui version="4.0" >
<class>AddLinkDialog</class>
<widget class="QDialog" name="AddLinkDialog" >
<property name="windowTitle" >
<string>Insert Link</string>
</property>
<property name="sizeGripEnabled" >
<bool>false</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<layout class="QFormLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Title:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="titleInput" >
<property name="minimumSize" >
<size>
<width>337</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>URL:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="urlInput" />
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>AddLinkDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>AddLinkDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,266 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>AddTorrentFile</class>
<widget class="QDialog" name="AddTorrentFile" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>464</width>
<height>385</height>
</rect>
</property>
<property name="windowTitle" >
<string>Add a torrent</string>
</property>
<property name="sizeGripEnabled" >
<bool>false</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Select a torrent source</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="6" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Destination:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QLineEdit" name="torrentFile" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Tracker URL:</string>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="browseTorrents" >
<property name="text" >
<string>Browse</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label_5" >
<property name="text" >
<string>File(s):</string>
</property>
<property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Size:</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_6" >
<property name="text" >
<string>Creator:</string>
</property>
</widget>
</item>
<item row="5" column="1" colspan="3" >
<widget class="QTextEdit" name="torrentContents" >
<property name="focusPolicy" >
<enum>Qt::NoFocus</enum>
</property>
<property name="tabChangesFocus" >
<bool>true</bool>
</property>
<property name="lineWrapMode" >
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="1" colspan="2" >
<widget class="QLineEdit" name="destinationFolder" >
<property name="focusPolicy" >
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="1" column="1" colspan="3" >
<widget class="QLabel" name="announceUrl" >
<property name="text" >
<string>&lt;none></string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Torrent file:</string>
</property>
</widget>
</item>
<item row="6" column="3" >
<widget class="QPushButton" name="browseDestination" >
<property name="text" >
<string>Browse</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_7" >
<property name="text" >
<string>Comment:</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3" >
<widget class="QLabel" name="commentLabel" >
<property name="text" >
<string>&lt;none></string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="3" >
<widget class="QLabel" name="creatorLabel" >
<property name="text" >
<string>&lt;none></string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="3" >
<widget class="QLabel" name="sizeLabel" >
<property name="text" >
<string>0</string>
</property>
</widget>
</item>
</layout>
<widget class="QWidget" name="widget" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>364</width>
<height>33</height>
</rect>
</property>
</widget>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>torrentFile</tabstop>
<tabstop>browseTorrents</tabstop>
<tabstop>torrentContents</tabstop>
<tabstop>destinationFolder</tabstop>
<tabstop>browseDestination</tabstop>
<tabstop>okButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>AddTorrentFile</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>278</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancelButton</sender>
<signal>clicked()</signal>
<receiver>AddTorrentFile</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,129 +0,0 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>389</width>
<height>243</height>
</rect>
</property>
<property name="windowTitle" >
<string>Http authentication required</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>You need to supply a Username and a Password to access this site</string>
</property>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Username:</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLineEdit" name="userEdit" />
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Password:</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QLineEdit" name="passwordEdit" />
</item>
<item row="5" column="0" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Site:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="siteDescription" >
<property name="font" >
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text" >
<string>%1 at %2</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,208 +0,0 @@
<ui version="4.0" >
<class>BackSide</class>
<widget class="QWidget" name="BackSide" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>378</width>
<height>385</height>
</rect>
</property>
<property name="windowTitle" >
<string>BackSide</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Settings</string>
</property>
<property name="flat" >
<bool>true</bool>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Title:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="hostName" >
<property name="text" >
<string>Pad Navigator Example</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Modified:</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Extent</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<widget class="QSlider" name="horizontalSlider" >
<property name="value" >
<number>42</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox" >
<property name="value" >
<number>42</number>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QDateTimeEdit" name="dateTimeEdit" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Other input</string>
</property>
<property name="flat" >
<bool>true</bool>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2" >
<item>
<widget class="QTreeWidget" name="treeWidget" >
<column>
<property name="text" >
<string>Widgets On Graphics View</string>
</property>
</column>
<item>
<property name="text" >
<string>QGraphicsProxyWidget</string>
</property>
<item>
<property name="text" >
<string>QGraphicsWidget</string>
</property>
<item>
<property name="text" >
<string>QObject</string>
</property>
</item>
<item>
<property name="text" >
<string>QGraphicsItem</string>
</property>
</item>
<item>
<property name="text" >
<string>QGraphicsLayoutItem</string>
</property>
</item>
</item>
</item>
<item>
<property name="text" >
<string>QGraphicsGridLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayoutItem</string>
</property>
</item>
</item>
</item>
<item>
<property name="text" >
<string>QGraphicsLinearLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayoutItem</string>
</property>
</item>
</item>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>groupBox</tabstop>
<tabstop>hostName</tabstop>
<tabstop>dateTimeEdit</tabstop>
<tabstop>horizontalSlider</tabstop>
<tabstop>spinBox</tabstop>
<tabstop>groupBox_2</tabstop>
<tabstop>treeWidget</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>horizontalSlider</sender>
<signal>valueChanged(int)</signal>
<receiver>spinBox</receiver>
<slot>setValue(int)</slot>
<hints>
<hint type="sourcelabel" >
<x>184</x>
<y>125</y>
</hint>
<hint type="destinationlabel" >
<x>275</x>
<y>127</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinBox</sender>
<signal>valueChanged(int)</signal>
<receiver>horizontalSlider</receiver>
<slot>setValue(int)</slot>
<hints>
<hint type="sourcelabel" >
<x>272</x>
<y>114</y>
</hint>
<hint type="destinationlabel" >
<x>190</x>
<y>126</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,236 +0,0 @@
<ui version="4.0" >
<author></author>
<comment>*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<exportmacro></exportmacro>
<class>databaseTranslationDialog</class>
<widget class="QDialog" name="databaseTranslationDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>425</width>
<height>370</height>
</rect>
</property>
<property name="windowTitle" >
<string>Qt Linguist - Batch Translation</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>4</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Options</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="ckOnlyUntranslated" >
<property name="text" >
<string>Only translate entries with no translation</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ckMarkFinished" >
<property name="text" >
<string>Set translated entries to finished</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Phrase book preference</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QListView" name="phrasebookList" >
<property name="uniformItemSizes" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="moveUpButton" >
<property name="text" >
<string>Move up</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="moveDownButton" >
<property name="text" >
<string>Move down</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>The batch translator will search through the selected phrasebooks in the order given above.</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="runButton" >
<property name="text" >
<string>&amp;Run</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

View File

@ -1,161 +0,0 @@
<ui version="4.0" >
<class>BookmarkDialog</class>
<widget class="QDialog" name="BookmarkDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>450</width>
<height>135</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Add Bookmark</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3" >
<item>
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Bookmark:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Add in Folder:</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<widget class="QLineEdit" name="bookmarkEdit" />
</item>
<item>
<widget class="QComboBox" name="bookmarkFolders" />
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3" >
<item>
<widget class="QToolButton" name="toolButton" >
<property name="minimumSize" >
<size>
<width>25</width>
<height>20</height>
</size>
</property>
<property name="text" >
<string>+</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="BookmarkWidget" name="bookmarkWidget" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Ignored" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<column>
<property name="text" >
<string>1</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4" >
<item>
<widget class="QPushButton" name="newFolderButton" >
<property name="text" >
<string>New Folder</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>BookmarkWidget</class>
<extends>QTreeWidget</extends>
<header>bookmarkwidget.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>BookmarkDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>BookmarkDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,149 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>BookWindow</class>
<widget class="QMainWindow" name="BookWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>601</width>
<height>420</height>
</rect>
</property>
<property name="windowTitle" >
<string>Books</string>
</property>
<widget class="QWidget" name="centralWidget" >
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Books</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTableView" name="bookTable" >
<property name="selectionBehavior" >
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Details</string>
</property>
<layout class="QFormLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label_5" >
<property name="text" >
<string>&lt;b>Title:&lt;/b></string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="titleEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2_2_2_2" >
<property name="text" >
<string>&lt;b>Author: &lt;/b></string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QComboBox" name="authorEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>&lt;b>Genre:&lt;/b></string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="genreEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>&lt;b>Year:&lt;/b></string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QSpinBox" name="yearEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="prefix" >
<string/>
</property>
<property name="maximum" >
<number>2100</number>
</property>
<property name="minimum" >
<number>-1000</number>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>&lt;b>Rating:&lt;/b></string>
</property>
</widget>
</item>
<item row="4" column="1" >
<widget class="QSpinBox" name="ratingEdit" >
<property name="maximum" >
<number>5</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>bookTable</tabstop>
<tabstop>titleEdit</tabstop>
<tabstop>authorEdit</tabstop>
<tabstop>genreEdit</tabstop>
<tabstop>yearEdit</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,199 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Browser</class>
<widget class="QWidget" name="Browser" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>765</width>
<height>515</height>
</rect>
</property>
<property name="windowTitle" >
<string>Qt SQL Browser</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QSplitter" name="splitter_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<widget class="ConnectionWidget" name="connectionWidget" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>13</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QTableView" name="table" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>2</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="contextMenuPolicy" >
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="selectionBehavior" >
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>180</height>
</size>
</property>
<property name="title" >
<string>SQL Query</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextEdit" name="sqlEdit" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>18</height>
</size>
</property>
<property name="baseSize" >
<size>
<width>0</width>
<height>120</height>
</size>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="clearButton" >
<property name="text" >
<string>&amp;Clear</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="submitButton" >
<property name="text" >
<string>&amp;Submit</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
<action name="insertRowAction" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;Insert Row</string>
</property>
<property name="statusTip" >
<string>Inserts a new Row</string>
</property>
</action>
<action name="deleteRowAction" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;Delete Row</string>
</property>
<property name="statusTip" >
<string>Deletes the current Row</string>
</property>
</action>
</widget>
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>ConnectionWidget</class>
<extends>QTreeView</extends>
<header>connectionwidget.h</header>
<container>0</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>sqlEdit</tabstop>
<tabstop>clearButton</tabstop>
<tabstop>submitButton</tabstop>
<tabstop>connectionWidget</tabstop>
<tabstop>table</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,406 +0,0 @@
<ui version="4.0" >
<class>Calculator</class>
<widget class="QWidget" name="Calculator" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>314</width>
<height>301</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>314</width>
<height>301</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>314</width>
<height>301</height>
</size>
</property>
<property name="windowTitle" >
<string>Calculator</string>
</property>
<widget class="QToolButton" name="backspaceButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>50</y>
<width>91</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Backspace</string>
</property>
</widget>
<widget class="QToolButton" name="clearButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>50</y>
<width>91</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Clear</string>
</property>
</widget>
<widget class="QToolButton" name="clearAllButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>50</y>
<width>91</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Clear All</string>
</property>
</widget>
<widget class="QToolButton" name="clearMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>MC</string>
</property>
</widget>
<widget class="QToolButton" name="readMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>MR</string>
</property>
</widget>
<widget class="QToolButton" name="setMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>MS</string>
</property>
</widget>
<widget class="QToolButton" name="addToMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>M+</string>
</property>
</widget>
<widget class="QToolButton" name="sevenButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>7</string>
</property>
</widget>
<widget class="QToolButton" name="eightButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>8</string>
</property>
</widget>
<widget class="QToolButton" name="nineButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>9</string>
</property>
</widget>
<widget class="QToolButton" name="fourButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>4</string>
</property>
</widget>
<widget class="QToolButton" name="fiveButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>5</string>
</property>
</widget>
<widget class="QToolButton" name="sixButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>6</string>
</property>
</widget>
<widget class="QToolButton" name="oneButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>1</string>
</property>
</widget>
<widget class="QToolButton" name="twoButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>2</string>
</property>
</widget>
<widget class="QToolButton" name="threeButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>3</string>
</property>
</widget>
<widget class="QToolButton" name="zeroButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>0</string>
</property>
</widget>
<widget class="QToolButton" name="pointButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>.</string>
</property>
</widget>
<widget class="QToolButton" name="changeSignButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>+-</string>
</property>
</widget>
<widget class="QToolButton" name="plusButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>+</string>
</property>
</widget>
<widget class="QToolButton" name="divisionButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>/</string>
</property>
</widget>
<widget class="QToolButton" name="timesButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>*</string>
</property>
</widget>
<widget class="QToolButton" name="minusButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>-</string>
</property>
</widget>
<widget class="QToolButton" name="squareRootButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Sqrt</string>
</property>
</widget>
<widget class="QToolButton" name="powerButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>x^2</string>
</property>
</widget>
<widget class="QToolButton" name="reciprocalButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>1/x</string>
</property>
</widget>
<widget class="QToolButton" name="equalButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>=</string>
</property>
</widget>
<widget class="QLineEdit" name="display" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>291</width>
<height>31</height>
</rect>
</property>
<property name="maxLength" >
<number>15</number>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,303 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>CalculatorForm</class>
<widget class="QWidget" name="CalculatorForm" >
<property name="objectName" >
<string notr="true" >CalculatorForm</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>276</width>
<height>98</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Calculator Builder</string>
</property>
<layout class="QGridLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="objectName" >
<string notr="true" >label</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>45</width>
<height>19</height>
</rect>
</property>
<property name="text" >
<string>Input 1</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="inputSpinBox1" >
<property name="objectName" >
<string notr="true" >inputSpinBox1</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>26</y>
<width>45</width>
<height>25</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3" >
<property name="objectName" >
<string notr="true" >label_3</string>
</property>
<property name="geometry" >
<rect>
<x>54</x>
<y>1</y>
<width>7</width>
<height>52</height>
</rect>
</property>
<property name="text" >
<string>+</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2" >
<property name="objectName" >
<string notr="true" >label_2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>45</width>
<height>19</height>
</rect>
</property>
<property name="text" >
<string>Input 2</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="inputSpinBox2" >
<property name="objectName" >
<string notr="true" >inputSpinBox2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>26</y>
<width>45</width>
<height>25</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3_2" >
<property name="objectName" >
<string notr="true" >label_3_2</string>
</property>
<property name="geometry" >
<rect>
<x>120</x>
<y>1</y>
<width>7</width>
<height>52</height>
</rect>
</property>
<property name="text" >
<string>=</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2_2_2" >
<property name="objectName" >
<string notr="true" >label_2_2_2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>37</width>
<height>17</height>
</rect>
</property>
<property name="text" >
<string>Output</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="outputWidget" >
<property name="objectName" >
<string notr="true" >outputWidget</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>24</y>
<width>37</width>
<height>27</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
<property name="text" >
<string>0</string>
</property>
<property name="alignment" >
<set>Qt::AlignAbsolute|Qt::AlignBottom|Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignHorizontal_Mask|Qt::AlignJustify|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing|Qt::AlignVCenter|Qt::AlignVertical_Mask</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="1" column="0" >
<spacer>
<property name="objectName" >
<string notr="true" >verticalSpacer</string>
</property>
<property name="geometry" >
<rect>
<x>85</x>
<y>69</y>
<width>20</width>
<height>20</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<spacer>
<property name="objectName" >
<string notr="true" >horizontalSpacer</string>
</property>
<property name="geometry" >
<rect>
<x>188</x>
<y>26</y>
<width>79</width>
<height>20</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

View File

@ -1,85 +0,0 @@
<ui version="4.0" >
<class>CertificateInfo</class>
<widget class="QDialog" name="CertificateInfo" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>397</height>
</rect>
</property>
<property name="windowTitle" >
<string>Display Certificate Information</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Certification Path</string>
</property>
<layout class="QHBoxLayout" >
<item>
<widget class="QListWidget" name="certificationPathView" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Certificate Information</string>
</property>
<layout class="QHBoxLayout" >
<item>
<widget class="QListWidget" name="certificateInfoView" />
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>clicked(QAbstractButton*)</signal>
<receiver>CertificateInfo</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>343</x>
<y>374</y>
</hint>
<hint type="destinationlabel" >
<x>352</x>
<y>422</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,79 +0,0 @@
<ui version="4.0" >
<class>ChatDialog</class>
<widget class="QDialog" name="ChatDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>513</width>
<height>349</height>
</rect>
</property>
<property name="windowTitle" >
<string>Chat</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextEdit" name="textEdit" >
<property name="focusPolicy" >
<enum>Qt::NoFocus</enum>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget" >
<property name="maximumSize" >
<size>
<width>180</width>
<height>16777215</height>
</size>
</property>
<property name="focusPolicy" >
<enum>Qt::NoFocus</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Message:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit" />
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,185 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>ChatMainWindow</class>
<widget class="QMainWindow" name="ChatMainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle" >
<string>QtDBus Chat</string>
</property>
<widget class="QWidget" name="centralwidget" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextBrowser" name="chatHistory" >
<property name="acceptDrops" >
<bool>false</bool>
</property>
<property name="toolTip" >
<string>Messages sent and received from other users</string>
</property>
<property name="acceptRichText" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Message:</string>
</property>
<property name="buddy" >
<cstring>messageLineEdit</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="messageLineEdit" />
</item>
<item>
<widget class="QPushButton" name="sendButton" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Sends a message to other people</string>
</property>
<property name="whatsThis" >
<string/>
</property>
<property name="text" >
<string>Send</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>31</height>
</rect>
</property>
<widget class="QMenu" name="menuQuit" >
<property name="title" >
<string>Help</string>
</property>
<addaction name="actionAboutQt" />
</widget>
<widget class="QMenu" name="menuFile" >
<property name="title" >
<string>File</string>
</property>
<addaction name="actionChangeNickname" />
<addaction name="separator" />
<addaction name="actionQuit" />
</widget>
<addaction name="menuFile" />
<addaction name="menuQuit" />
</widget>
<widget class="QStatusBar" name="statusbar" />
<action name="actionQuit" >
<property name="text" >
<string>Quit</string>
</property>
<property name="shortcut" >
<string>Ctrl+Q</string>
</property>
</action>
<action name="actionAboutQt" >
<property name="text" >
<string>About Qt...</string>
</property>
</action>
<action name="actionChangeNickname" >
<property name="text" >
<string>Change nickname...</string>
</property>
<property name="shortcut" >
<string>Ctrl+N</string>
</property>
</action>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>chatHistory</tabstop>
<tabstop>messageLineEdit</tabstop>
<tabstop>sendButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>messageLineEdit</sender>
<signal>returnPressed()</signal>
<receiver>sendButton</receiver>
<slot>animateClick()</slot>
<hints>
<hint type="sourcelabel" >
<x>299</x>
<y>554</y>
</hint>
<hint type="destinationlabel" >
<x>744</x>
<y>551</y>
</hint>
</hints>
</connection>
<connection>
<sender>actionQuit</sender>
<signal>triggered(bool)</signal>
<receiver>ChatMainWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel" >
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel" >
<x>399</x>
<y>299</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,149 +0,0 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>NicknameDialog</class>
<widget class="QDialog" name="NicknameDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>396</width>
<height>105</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Set nickname</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>New nickname:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="nickname" />
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>NicknameDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>278</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancelButton</sender>
<signal>clicked()</signal>
<receiver>NicknameDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
</ui>

File diff suppressed because it is too large Load Diff

View File

@ -1,150 +0,0 @@
<ui version="4.0" >
<class>ConnectDialog</class>
<widget class="QDialog" name="ConnectDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>585</width>
<height>361</height>
</rect>
</property>
<property name="windowTitle" >
<string>Configure Connection</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="signalGroupBox" >
<property name="title" >
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QListWidget" name="signalList" >
<property name="textElideMode" >
<enum>Qt::ElideMiddle</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QToolButton" name="editSignalsButton" >
<property name="text" >
<string>Edit...</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="0" column="2" >
<widget class="QGroupBox" name="slotGroupBox" >
<property name="title" >
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QListWidget" name="slotList" >
<property name="textElideMode" >
<enum>Qt::ElideMiddle</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QToolButton" name="editSlotsButton" >
<property name="text" >
<string>Edit...</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" >
<widget class="QCheckBox" name="showAllCheckBox" >
<property name="text" >
<string>Show signals and slots inherited from QWidget</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ConnectDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>ConnectDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,64 +0,0 @@
<ui version="4.0" >
<class>Controller</class>
<widget class="QWidget" name="Controller" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>111</height>
</rect>
</property>
<property name="windowTitle" >
<string>Controller</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Controller</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="decelerate" >
<property name="text" >
<string>Decelerate</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="accelerate" >
<property name="text" >
<string>Accelerate</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QPushButton" name="right" >
<property name="text" >
<string>Right</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QPushButton" name="left" >
<property name="text" >
<string>Left</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,106 +0,0 @@
<ui version="4.0" >
<class>CookiesDialog</class>
<widget class="QDialog" name="CookiesDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>550</width>
<height>370</height>
</rect>
</property>
<property name="windowTitle" >
<string>Cookies</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>252</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<widget class="SearchLineEdit" name="search" />
</item>
<item row="1" column="0" colspan="2" >
<widget class="EditTableView" name="cookiesTable" />
</item>
<item row="2" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>&amp;Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove &amp;All Cookies</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SearchLineEdit</class>
<extends>QLineEdit</extends>
<header>searchlineedit.h</header>
</customwidget>
<customwidget>
<class>EditTableView</class>
<extends>QTableView</extends>
<header>edittableview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>CookiesDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>472</x>
<y>329</y>
</hint>
<hint type="destinationlabel" >
<x>461</x>
<y>356</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,184 +0,0 @@
<ui version="4.0" >
<class>CookiesExceptionsDialog</class>
<widget class="QDialog" name="CookiesExceptionsDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>466</width>
<height>446</height>
</rect>
</property>
<property name="windowTitle" >
<string>Cookie Exceptions</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QGroupBox" name="newExceptionGroupBox" >
<property name="title" >
<string>New Exception</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Domain:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="domainLineEdit" />
</item>
</layout>
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>81</width>
<height>25</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="blockButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Block</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="allowForSessionButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Allow For Session</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="allowButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Allow</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="ExceptionsGroupBox" >
<property name="title" >
<string>Exceptions</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>252</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="3" >
<widget class="SearchLineEdit" name="search" />
</item>
<item row="1" column="0" colspan="4" >
<widget class="EditTableView" name="exceptionTable" />
</item>
<item row="2" column="0" >
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>&amp;Remove</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove &amp;All</string>
</property>
</widget>
</item>
<item row="2" column="2" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SearchLineEdit</class>
<extends>QLineEdit</extends>
<header>searchlineedit.h</header>
</customwidget>
<customwidget>
<class>EditTableView</class>
<extends>QTableView</extends>
<header>edittableview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>CookiesExceptionsDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>381</x>
<y>428</y>
</hint>
<hint type="destinationlabel" >
<x>336</x>
<y>443</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,125 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>530</width>
<height>309</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QLabel { border-width: 28; color: #0f0; background-color: white; }
#label_repeat_repeat {
border-image: url(&quot;images/borderimage.png&quot;) 28 repeat repeat;
}
#label_stretch_repeat {
border-image: url(&quot;images/borderimage.png&quot;) 28 stretch repeat;
}
#label_round_repeat {
border-image: url(&quot;images/borderimage.png&quot;) 28 round repeat;
}
#label_repeat_round {
border-image: url(&quot;images/borderimage.png&quot;) 28 repeat round;
}
#label_stretch_round {
border-image: url(&quot;images/borderimage.png&quot;) 28 stretch round;
}
#label_round_round {
border-image: url(&quot;images/borderimage.png&quot;) 28 round round;
}
#label_repeat_stretch {
border-image: url(&quot;images/borderimage.png&quot;) 28 repeat stretch;
}
#label_stretch_stretch {
border-image: url(&quot;images/borderimage.png&quot;) 28 stretch stretch;
}
#label_round_stretch {
border-image: url(&quot;images/borderimage.png&quot;) 28 round stretch;
}
</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_stretch_stretch">
<property name="text">
<string>Strecth Stretch</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_stretch_round">
<property name="text">
<string>Stretch Round</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_stretch_repeat">
<property name="text">
<string>Stretch repeat</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_round_stretch">
<property name="text">
<string>Round Stretch</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_round_round">
<property name="text">
<string>Round Round</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="label_round_repeat">
<property name="text">
<string>Round Repeat</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_repeat_stretch">
<property name="text">
<string>Repeat Stretch</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label_repeat_round">
<property name="text">
<string>Repeat Round</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="label_repeat_repeat">
<property name="text">
<string>Repeat Repeat</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,247 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>606</width>
<height>388</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="styleSheet">
<string notr="true">* { border-image: url(&quot;images/pushbutton.png&quot;) 6 6 6 6; border-width:6px; }</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QFrame" name="frame_2">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Each widget should have a background image. including the top level</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar_2">
<property name="value">
<number>24</number>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_2" native="true">
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_2"/>
</item>
<item>
<widget class="QRadioButton" name="radioButton_4">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QScrollArea" name="scrollArea_2">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>260</width>
<height>197</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="0" colspan="2">
<widget class="QSlider" name="horizontalSlider_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLCDNumber" name="lcdNumber_2"/>
</item>
<item row="0" column="1">
<widget class="QRadioButton" name="radioButton_5">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QRadioButton" name="radioButton_6">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="checkBox_4">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="checkBox_5">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QCheckBox" name="checkBox_6">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_2">
<property name="text">
<string>Line Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_2">
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>606</width>
<height>36</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="actionOpen"/>
<addaction name="actionClose"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>Edit</string>
</property>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionOpen">
<property name="text">
<string>Open</string>
</property>
</action>
<action name="actionClose">
<property name="text">
<string>Close</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,458 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>698</width>
<height>589</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="styleSheet">
<string notr="true">* {
background: yellow;
padding: 2px;
border-radius: 4px;
}
QGroupBox {
border: 1px solid gray;
}
QAbstractButton {
background: cyan;
}
QFrame, QMenuBar {
background: magenta;
}
QLineEdit, QSpinBox {
background: white;
}
#gb1 * {
}
#gb2 * {
border: 1px solid blue;
}
#gb3 * {
border: 0px solid blue;
}
#gb4 * {
border-image: url(&quot;images/pushbutton.png&quot;) 6 6 6 6;
border-width:6px;
}
</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QGroupBox" name="gb1">
<property name="title">
<string>No border</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_2"/>
</item>
<item>
<widget class="QRadioButton" name="radioButton_6">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_4">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit">
<property name="text">
<string>LineEdit</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox">
<item>
<property name="text">
<string>ComboBox</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_2">
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="gb3">
<property name="title">
<string>0px border</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QFrame" name="frame_2">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QPushButton" name="pushButton_5">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_3"/>
</item>
<item>
<widget class="QRadioButton" name="radioButton_7">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_5">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_2">
<property name="text">
<string>LineEdit</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2">
<item>
<property name="text">
<string>ComboBox</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_3">
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QGroupBox" name="gb4">
<property name="title">
<string>border-image</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QFrame" name="frame_4">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QPushButton" name="pushButton_7">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_5"/>
</item>
<item>
<widget class="QRadioButton" name="radioButton_9">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_7">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_4">
<property name="text">
<string>LineEdit</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_4">
<item>
<property name="text">
<string>ComboBox</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_5">
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="gb2">
<property name="title">
<string>1px border</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QFrame" name="frame_3">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QPushButton" name="pushButton_6">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_4"/>
</item>
<item>
<widget class="QRadioButton" name="radioButton_8">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_6">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_3">
<property name="text">
<string>LineEdit</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_3">
<item>
<property name="text">
<string>ComboBox</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_4">
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>698</width>
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="actionOpen"/>
<addaction name="actionClose"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>Edit</string>
</property>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionOpen">
<property name="text">
<string>Open</string>
</property>
</action>
<action name="actionClose">
<property name="text">
<string>Close</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,271 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>449</width>
<height>254</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">#box_color QAbstractButton {
background: pink;
color: purple;
}
#box_gradiant QAbstractButton {
background-color: qconicalgradient(cx:0.5, cy:0.5, angle:0, stop:0 rgba(255, 255, 255, 255), stop:0.373979 rgba(255, 255, 255, 255), stop:0.373991 rgba(33, 30, 255, 255), stop:0.624018 rgba(33, 30, 255, 255), stop:0.624043 rgba(255, 0, 0, 255), stop:1 rgba(255, 0, 0, 255));
color: cyan;
}
#box_pixmap QAbstractButton {
background: url(&quot;images/pagefold.png&quot;) no-repeat top right;
color: yellow;
}
</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QGroupBox" name="box_color">
<property name="title">
<string>color</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QToolButton" name="toolButton">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item row="1" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>70</width>
<height>27</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QRadioButton" name="radioButton_2">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QToolButton" name="toolButton_4">
<property name="text">
<string>autoraise</string>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QPushButton" name="pushButton_4">
<property name="text">
<string>Checked</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="box_gradiant">
<property name="title">
<string>gradiant</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QToolButton" name="toolButton_2">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item row="1" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>78</width>
<height>24</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkBox_2">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QRadioButton" name="radioButton">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QToolButton" name="toolButton_5">
<property name="text">
<string>autoraise</string>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QPushButton" name="pushButton_5">
<property name="text">
<string>Checked</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2">
<widget class="QGroupBox" name="box_pixmap">
<property name="title">
<string>pixmap</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0" colspan="2">
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QToolButton" name="toolButton_3">
<property name="text">
<string>...</string>
</property>
</widget>
</item>
<item row="1" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>78</width>
<height>24</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="checkBox_3">
<property name="text">
<string>CheckBox</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QRadioButton" name="radioButton_3">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QToolButton" name="toolButton_6">
<property name="text">
<string>autoraise</string>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QPushButton" name="pushButton_6">
<property name="text">
<string>Checked</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>51</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,306 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>295</width>
<height>229</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">#box_color QComboBox {
background: pink;
color: purple;
}
#box_gradiant QComboBox {
background-color: qconicalgradient(cx:0.5, cy:0.5, angle:0, stop:0 rgba(255, 255, 255, 255), stop:0.373979 rgba(255, 255, 255, 255), stop:0.373991 rgba(33, 30, 255, 255), stop:0.624018 rgba(33, 30, 255, 255), stop:0.624043 rgba(255, 0, 0, 255), stop:1 rgba(255, 0, 0, 255));
color: cyan;
}
#box_pixmap QAbstractButton {
background: url(&quot;images/pagefold.png&quot;) no-repeat top right;
color: yellow;
}
#comboBox_A , #comboBox_B{ border: 3px solid #4e5; }
</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QGroupBox" name="box_color">
<property name="title">
<string>color</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="3" column="0">
<widget class="QComboBox" name="comboBox_2">
<property name="enabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="comboBox_3">
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="comboBox_4">
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
<widget class="QComboBox" name="comboBox_5">
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="5" column="0">
<widget class="QComboBox" name="comboBox_A">
<item>
<property name="text">
<string>ComboText</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="6" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="box_gradiant">
<property name="title">
<string>color</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="3" column="0">
<widget class="QComboBox" name="comboBox_6">
<property name="enabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="comboBox_7">
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QComboBox" name="comboBox_8">
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
<widget class="QComboBox" name="comboBox_9">
<item>
<property name="text">
<string>Foo</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="5" column="0">
<widget class="QComboBox" name="comboBox_B">
<item>
<property name="text">
<string>ComboText</string>
</property>
</item>
<item>
<property name="text">
<string>Bar</string>
</property>
</item>
<item>
<property name="text">
<string>Bouz</string>
</property>
</item>
</widget>
</item>
<item row="6" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,469 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>413</height>
</rect>
</property>
<property name="windowTitle">
<string>Style Sheet</string>
</property>
<property name="styleSheet">
<string notr="true">.QWidget {
background-color: beige;
}
/* Nice Windows-XP-style password character. */
QLineEdit[echoMode=&quot;2&quot;] {
lineedit-password-character: 9679;
}
/* We provide a min-width and min-height for push buttons
so that they look elegant regardless of the width of the text. */
QPushButton {
background-color: palegoldenrod;
border-width: 2px;
border-color: darkkhaki;
border-style: solid;
border-radius: 5;
padding: 3px;
min-width: 9ex;
min-height: 2.5ex;
}
QPushButton:hover {
background-color: khaki;
}
/* Increase the padding, so the text is shifted when the button is
pressed. */
QPushButton:pressed {
padding-left: 5px;
padding-top: 5px;
background-color: #d0d67c;
}
QLabel, QAbstractButton {
font: bold;
}
/* Mark mandatory fields with a brownish color. */
.mandatory {
color: brown;
}
/* Bold text on status bar looks awful. */
QStatusBar QLabel {
font: normal;
}
QStatusBar::item {
border-width: 1;
border-color: darkkhaki;
border-style: solid;
border-radius: 2;
}
QComboBox, QLineEdit, QSpinBox, QTextEdit, QListView {
background-color: cornsilk;
selection-color: #0a214c;
selection-background-color: #C19A6B;
}
QListView {
show-decoration-selected: 1;
}
QListView::item:hover {
background-color: wheat;
}
/* We reserve 1 pixel space in padding. When we get the focus,
we kill the padding and enlarge the border. This makes the items
glow. */
QLineEdit, QFrame {
border-width: 2px;
padding: 1px;
border-style: solid;
border-color: darkkhaki;
border-radius: 5px;
}
/* As mentioned above, eliminate the padding and increase the border. */
QLineEdit:focus, QFrame:focus {
border-width: 3px;
padding: 0px;
}
/* A QLabel is a QFrame ... */
QLabel {
border: none;
padding: 0;
background: none;
}
/* A QToolTip is a QLabel ... */
QToolTip {
border: 2px solid darkkhaki;
padding: 5px;
border-radius: 3px;
opacity: 200;
}
/* Nice to have the background color change when hovered. */
QRadioButton:hover, QCheckBox:hover {
background-color: wheat;
}
/* Force the dialog's buttons to follow the Windows guidelines. */
QDialogButtonBox {
button-layout: 0;
}
</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>9</number>
</property>
<item>
<widget class="QFrame" name="mainFrame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>9</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="6" column="0" colspan="5">
<widget class="QCheckBox" name="agreeCheckBox">
<property name="toolTip">
<string>Please read the LICENSE file before checking</string>
</property>
<property name="text">
<string>I &amp;accept the terms and &amp;conditions</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Profession:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
</property>
<property name="buddy">
<cstring>professionList</cstring>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="nameLabel">
<property name="text">
<string>&amp;Name:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>nameCombo</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QRadioButton" name="maleRadioButton">
<property name="toolTip">
<string>Check this if you are male</string>
</property>
<property name="text">
<string>&amp;Male</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="passwordLabel">
<property name="text">
<string>&amp;Password:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>passwordEdit</cstring>
</property>
</widget>
</item>
<item row="4" column="1" colspan="4">
<widget class="QComboBox" name="countryCombo">
<property name="toolTip">
<string>Specify country of origin</string>
</property>
<property name="statusTip">
<string>Specify country of origin</string>
</property>
<property name="currentIndex">
<number>6</number>
</property>
<item>
<property name="text">
<string>Egypt</string>
</property>
</item>
<item>
<property name="text">
<string>France</string>
</property>
</item>
<item>
<property name="text">
<string>Germany</string>
</property>
</item>
<item>
<property name="text">
<string>India</string>
</property>
</item>
<item>
<property name="text">
<string>Italy</string>
</property>
</item>
<item>
<property name="text">
<string>Norway</string>
</property>
</item>
<item>
<property name="text">
<string>Pakistan</string>
</property>
</item>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="ageLabel">
<property name="text">
<string>&amp;Age:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>ageSpinBox</cstring>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="countryLabel">
<property name="text">
<string>Country:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>countryCombo</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="genderLabel">
<property name="text">
<string>Gender:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="1" colspan="4">
<widget class="QLineEdit" name="passwordEdit">
<property name="toolTip">
<string>Specify your password</string>
</property>
<property name="statusTip">
<string>Specify your password</string>
</property>
<property name="text">
<string>Password</string>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
<item row="1" column="2" colspan="2">
<widget class="QRadioButton" name="femaleRadioButton">
<property name="styleSheet">
<string>Check this if you are female</string>
</property>
<property name="text">
<string>&amp;Female</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QSpinBox" name="ageSpinBox">
<property name="toolTip">
<string>Specify your age</string>
</property>
<property name="statusTip">
<string>Specify your age</string>
</property>
<property name="minimum">
<number>12</number>
</property>
<property name="value">
<number>22</number>
</property>
</widget>
</item>
<item row="0" column="1" colspan="4">
<widget class="QComboBox" name="nameCombo">
<property name="toolTip">
<string>Specify your name</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="4">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="3" colspan="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>61</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="3" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="5" column="1" colspan="4">
<widget class="QListWidget" name="professionList">
<property name="toolTip">
<string>Select your profession</string>
</property>
<property name="statusTip">
<string>Specify your name here</string>
</property>
<property name="whatsThis">
<string>Specify your name here</string>
</property>
<property name="currentRow">
<number>0</number>
</property>
<item>
<property name="text">
<string>Developer</string>
</property>
</item>
<item>
<property name="text">
<string>Student</string>
</property>
</item>
<item>
<property name="text">
<string>Fisherman</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>31</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="editStyleAction"/>
<addaction name="separator"/>
<addaction name="exitAction"/>
</widget>
<widget class="QMenu" name="menu_Help">
<property name="title">
<string>&amp;Help</string>
</property>
<addaction name="aboutAction"/>
<addaction name="aboutQtAction"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_Help"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="exitAction">
<property name="text">
<string>&amp;Exit</string>
</property>
</action>
<action name="aboutQtAction">
<property name="text">
<string>About Qt</string>
</property>
</action>
<action name="editStyleAction">
<property name="text">
<string>Edit &amp;Style...</string>
</property>
</action>
<action name="aboutAction">
<property name="text">
<string>About</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,656 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>426</width>
<height>413</height>
</rect>
</property>
<property name="windowTitle">
<string>Style Sheet</string>
</property>
<property name="styleSheet">
<string notr="true">/* Customize any plain widget that is a child of a QMainWindow. */
QMainWindow &gt; .QWidget {
background-color: gainsboro;
background-image: url(images/pagefold.png);
background-position: top right;
background-repeat: no-repeat
}
/* Provide a padding for the layout inside the frame. The frame
exists only to provide a padding for the top-right image, so we
explicitly disable the border. */
#mainFrame {
padding-right: 30px;
border-style: none;
border-image: none; /* since we set a border-image below */
}
/* mainFrame won't have this border-image since we have
explicitly set it to 'none' using a more specific selector. */
QFrame, QLineEdit, QComboBox[editable=&quot;true&quot;], QSpinBox {
border-image: url(images/frame.png) 4;
border-width: 3;
}
QLabel {
border: none;
border-image: none;
padding: 0;
background: none;
}
/* Make text in message boxes selectable. */
QMessageBox {
/* LinksAccessibleByMouse | TextSelectableByMouse */
messagebox-text-interaction-flags: 5;
}
/* Set the selection colors for all widgets. */
QWidget {
selection-color: black;
selection-background-color: Silver;
color: black;
}
/* Make the entire row selected in item views. */
QAbstractItemView {
show-decoration-selected: 1;
}
/* Nice WindowsXP-style password character for password line edits. */
QLineEdit[echoMode=&quot;2&quot;] {
lineedit-password-character: 9679;
}
/* Customize tooltips. */
QToolTip {
background-color: rgb(200,200,255);
border-color: darkslategray;
border-width: 1px;
border-style: solid;
padding: 3px;
font: bold;
border-radius: 3px;
opacity: 200;
}
/* Customize radio buttons. */
QRadioButton {
spacing: 5px;
}
QRadioButton::indicator {
width: 13px;
height: 13px;
}
QRadioButton::indicator::unchecked {
image: url(images/radiobutton_unchecked.png);
}
QRadioButton::indicator:unchecked:hover {
image: url(images/radiobutton_unchecked_hover.png);
}
QRadioButton::indicator:unchecked:pressed {
image: url(images/radiobutton_unchecked_pressed.png);
}
QRadioButton::indicator::checked {
image: url(images/radiobutton_checked.png);
}
QRadioButton::indicator:checked:hover {
image: url(images/radiobutton_checked_hover.png);
}
QRadioButton::indicator:checked:pressed {
image: url(images/radiobutton_checked_pressed.png);
}
/* Customize arrows. */
*::down-arrow, *::menu-indicator {
image: url(images/down_arrow.png);
width: 7px;
height: 7px;
}
*::down-arrow:disabled, *::down-arrow:off {
image: url(images/down_arrow_disabled.png);
}
*::up-arrow {
image: url(images/up_arrow.png);
width: 7px;
height: 7px;
}
*::up-arrow:disabled, *::up-arrow:off {
image: url(images/up_arrow_disabled.png);
}
/* Customize push buttons and comboboxes. Our read-only combobox
is very similar to a push button, so they share the same border image. */
QPushButton {
min-width: 4em;
}
QPushButton, QComboBox[editable=&quot;false&quot;],
QComboBox[editable=&quot;true&quot;]::drop-down {
border-image: url(images/pushbutton.png) 5;
border-width: 5;
}
QPushButton:hover, QComboBox[editable=&quot;false&quot;]:hover,
QComboBox[editable=&quot;true&quot;]::drop-down:hover, QMenuBar::item:hover {
border-image: url(images/pushbutton_hover.png) 5;
border-width: 5;
}
QPushButton:pressed, QComboBox[editable=&quot;false&quot;]:on,
QComboBox[editable=&quot;true&quot;]::drop-down:on, QMenuBar::item:on {
border-image: url(images/pushbutton_pressed.png) 5;
border-width: 5;
}
/* Customize read-only comboboxes. */
QComboBox[editable=&quot;false&quot;] {
padding-left: 3px;
padding-right: 20px; /* space for the arrow */
}
QComboBox[editable=&quot;false&quot;]::drop-down {
subcontrol-origin: padding;
subcontrol-position: top right;
width: 15px;
border-left-style: solid;
border-left-color: darkgray;
border-left-width: 1px;
}
QComboBox[editable=&quot;false&quot;]::down-arrow {
subcontrol-origin: content;
subcontrol-position: center;
position: relative;
left: 1px; /* 1 pixel dropdown border */
}
/* The combobox arrow is on when the popup is open. */
QComboBox[editable=&quot;false&quot;]::down-arrow:on {
position: relative;
top: 1px;
left: 2px;
}
/* Customize editable comboboxes. */
QComboBox[editable=&quot;true&quot;] {
padding-right: 16px;
}
QComboBox[editable=&quot;true&quot;]::drop-down {
subcontrol-origin: border;
subcontrol-position: top right;
width: 13px;
position: absolute;
top: 2px;
bottom: 2px;
right: 2px;
}
QComboBox[editable=&quot;true&quot;]::drop-down,
QComboBox[editable=&quot;true&quot;]::drop-down:hover,
QComboBox[editable=&quot;true&quot;]::drop-down:on {
border-width: 0px;
border-left-width: 3px; /* we need only left and center part */
}
/* Shift the arrow when it's open. */
QComboBox[editable=&quot;true&quot;]::down-arrow:on {
position: relative;
top: 1px;
left: 1px;
}
/* Customize check boxes. */
QCheckBox {
spacing: 5px;
}
QCheckBox::indicator {
width: 13px;
height: 13px;
}
QCheckBox::indicator:unchecked {
image: url(images/checkbox_unchecked.png);
}
QCheckBox::indicator:unchecked:hover {
image: url(images/checkbox_unchecked_hover.png);
}
QCheckBox::indicator:unchecked:pressed {
image: url(images/checkbox_unchecked_pressed.png);
}
QCheckBox::indicator:checked {
image: url(images/checkbox_checked.png);
}
QCheckBox::indicator:checked:hover {
image: url(images/checkbox_checked_hover.png);
}
QCheckBox::indicator:checked:pressed {
image: url(images/checkbox_checked_pressed.png);
}
/* Customize the size grip. */
QSizeGrip {
image: url(images/sizegrip.png);
width: 16px;
height: 16px;
}
/* Customize the menu bar. */
QMenuBar {
border-image: none;
border-style: none;
border-width: 1px;
border-bottom-style: solid;
border-bottom-color: darkslategray;
padding: 2px;
}
/* Customize spin boxes. */
QSpinBox {
padding-right: 15px;
}
QSpinBox::up-button {
subcontrol-origin: border;
subcontrol-position: top right;
width: 16px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */
border-image: url(images/spinup.png) 1;
border-width: 1px;
}
QSpinBox::up-button:hover {
border-image: url(images/spinup_hover.png) 1;
}
QSpinBox::up-button:pressed {
border-image: url(images/spinup_pressed.png) 1;
}
QSpinBox::down-button {
subcontrol-origin: border;
subcontrol-position: bottom right;
width: 16px;
border-image: url(images/spindown.png) 1;
border-width: 1px;
border-top-width: 0;
}
QSpinBox::down-button:hover {
border-image: url(images/spindown_hover.png) 1;
}
QSpinBox::down-button:pressed {
border-image: url(images/spindown_pressed.png) 1;
}
</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>9</number>
</property>
<item>
<widget class="QFrame" name="mainFrame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>9</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<item row="6" column="0" colspan="5">
<widget class="QCheckBox" name="agreeCheckBox">
<property name="toolTip">
<string>Please read the LICENSE file before checking</string>
</property>
<property name="text">
<string>I &amp;accept the terms and &amp;conditions</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Profession:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
</property>
<property name="buddy">
<cstring>professionList</cstring>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="nameLabel">
<property name="text">
<string>&amp;Name:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>nameCombo</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QRadioButton" name="maleRadioButton">
<property name="toolTip">
<string>Check this if you are male</string>
</property>
<property name="text">
<string>&amp;Male</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="passwordLabel">
<property name="text">
<string>&amp;Password:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>passwordEdit</cstring>
</property>
</widget>
</item>
<item row="4" column="1" colspan="4">
<widget class="QComboBox" name="countryCombo">
<property name="toolTip">
<string>Specify country of origin</string>
</property>
<property name="statusTip">
<string>Specify country of origin</string>
</property>
<property name="currentIndex">
<number>6</number>
</property>
<item>
<property name="text">
<string>Egypt</string>
</property>
</item>
<item>
<property name="text">
<string>France</string>
</property>
</item>
<item>
<property name="text">
<string>Germany</string>
</property>
</item>
<item>
<property name="text">
<string>India</string>
</property>
</item>
<item>
<property name="text">
<string>Italy</string>
</property>
</item>
<item>
<property name="text">
<string>Norway</string>
</property>
</item>
<item>
<property name="text">
<string>Pakistan</string>
</property>
</item>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="ageLabel">
<property name="text">
<string>&amp;Age:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>ageSpinBox</cstring>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="countryLabel">
<property name="text">
<string>Country:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>countryCombo</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="genderLabel">
<property name="text">
<string>Gender:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="1" colspan="4">
<widget class="QLineEdit" name="passwordEdit">
<property name="toolTip">
<string>Specify your password</string>
</property>
<property name="statusTip">
<string>Specify your password</string>
</property>
<property name="text">
<string>Password</string>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
<item row="1" column="2" colspan="2">
<widget class="QRadioButton" name="femaleRadioButton">
<property name="styleSheet">
<string>Check this if you are female</string>
</property>
<property name="text">
<string>&amp;Female</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QSpinBox" name="ageSpinBox">
<property name="toolTip">
<string>Specify your age</string>
</property>
<property name="statusTip">
<string>Specify your age</string>
</property>
<property name="minimum">
<number>12</number>
</property>
<property name="value">
<number>22</number>
</property>
</widget>
</item>
<item row="0" column="1" colspan="4">
<widget class="QComboBox" name="nameCombo">
<property name="toolTip">
<string>Specify your name</string>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="4">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="3" colspan="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>61</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="3" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="5" column="1" colspan="4">
<widget class="QListWidget" name="professionList">
<property name="toolTip">
<string>Select your profession</string>
</property>
<property name="statusTip">
<string>Specify your name here</string>
</property>
<property name="whatsThis">
<string>Specify your name here</string>
</property>
<property name="currentRow">
<number>0</number>
</property>
<item>
<property name="text">
<string>Developer</string>
</property>
</item>
<item>
<property name="text">
<string>Student</string>
</property>
</item>
<item>
<property name="text">
<string>Fisherman</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>426</width>
<height>29</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="editStyleAction"/>
<addaction name="separator"/>
<addaction name="exitAction"/>
</widget>
<widget class="QMenu" name="menu_Help">
<property name="title">
<string>&amp;Help</string>
</property>
<addaction name="aboutAction"/>
<addaction name="aboutQtAction"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_Help"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="exitAction">
<property name="text">
<string>&amp;Exit</string>
</property>
</action>
<action name="aboutQtAction">
<property name="text">
<string>About Qt</string>
</property>
</action>
<action name="editStyleAction">
<property name="text">
<string>Edit &amp;Style...</string>
</property>
</action>
<action name="aboutAction">
<property name="text">
<string>About</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,91 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>322</width>
<height>203</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true"> QPushButton#evilButton {
background-color: red;
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: beige;
font: bold 14px;
min-width: 10em;
padding: 6px;
}
QPushButton#evilButton:pressed {
background-color: rgb(224, 0, 0);
border-style: inset;
}
QLineEdit { color: red }
QLineEdit[readOnly=&quot;true&quot;] { color: gray }
</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QPushButton" name="evilButton">
<property name="text">
<string>Format C:</string>
</property>
</widget>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>95</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QLineEdit" name="lineEdit">
<property name="text">
<string>Foo</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLineEdit" name="lineEdit_2">
<property name="text">
<string>ReadOnly</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>102</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,319 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>884</width>
<height>327</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true"> QLabel
{
border: 2px dashed rgb(0, 85, 255)
}
QGroupBox .QFrame {
margin: 20px 10px 5px 0px;
padding: 0px 10px 15px 20px;
}
QGroupBox {
border: 5px solid white;
}
#line1 { background-color: yellow; }
#line2 { background-color: pink; }
#line1, #line2 {
border: 1px solid rgb(170, 85, 255);
}
QFrame::no-frame {
background: orange;
border-color: #000;
}
</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>GroupBox</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Styled</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QFrame" name="frame_2">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Box</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QFrame" name="frame_6">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>None</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
<widget class="QFrame" name="frame_4">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Box Plain</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<widget class="QFrame" name="frame_3">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Panel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_12">
<item>
<widget class="QFrame" name="frame_5">
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>WinPanel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="Line" name="line2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="1" column="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="2">
<widget class="Line" name="line1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string>This test that all the frame style can handle margins and paddings correctly
(and the background of this label should be orange)</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,150 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">#groupBox_1:checked { color:magenta; }
#groupBox_2 { background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(0, 0, 0, 255), stop:0.05 rgba(14, 8, 73, 255), stop:0.36 rgba(28, 17, 145, 255), stop:0.6 rgba(126, 14, 81, 255), stop:0.75 rgba(234, 11, 11, 255), stop:0.79 rgba(244, 70, 5, 255), stop:0.86 rgba(255, 136, 0, 255), stop:0.935 rgba(239, 236, 55, 255));
color: rgb(33, 255, 181); }
#groupBox_3 { padding: 20px; margin: 20px; }
#groupBox_3 QLabel { background-color: #46e; }
#groupBox_4::title { subcontrol-position: bottom left; border: 1px solid white;}
#groupBox_5::indicator {border: 1px solid white;}
#groupBox_6 { border: 5px dashed pink;}</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_1">
<property name="title">
<string>GroupBox</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>GroupBox</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>GroupBox</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>GroupBox</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>GroupBox</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="1">
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>GroupBox</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,179 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>437</width>
<height>352</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">::item { border: 1px solid black; background-color: purple; }
::item {margin-left: 20px; }
QAbstractItemView { selection-background-color: red;
show-decoration- selected: 0;
}
::item:selected { background-color: yellow; }</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string>1</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
<item>
<property name="text">
<string>New Subitem</string>
</property>
<item>
<property name="text">
<string>New Subitem</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</item>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QTableWidget" name="tableWidget">
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<item row="0" column="0">
<property name="text">
<string>mljkh mh mjl</string>
</property>
</item>
<item row="0" column="1">
<property name="text">
<string>h jlh mjklh </string>
</property>
</item>
<item row="0" column="2">
<property name="text">
<string>mjklh mlhj mjlh m</string>
</property>
</item>
<item row="1" column="3">
<property name="text">
<string>mlhj lmhj </string>
</property>
</item>
<item row="2" column="0">
<property name="text">
<string>mlkj l</string>
</property>
</item>
<item row="2" column="1">
<property name="text">
<string>mlkj </string>
</property>
</item>
<item row="2" column="2">
<property name="text">
<string>mlkj lmkj </string>
</property>
</item>
<item row="2" column="3">
<property name="text">
<string>mlkhj mlh</string>
</property>
</item>
<item row="3" column="1">
<property name="text">
<string>mlkj lmkj </string>
</property>
</item>
<item row="4" column="0">
<property name="text">
<string>mlkj lmkj </string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,125 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>326</width>
<height>170</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QProgressBar" name="progressBar">
<property name="styleSheet">
<string notr="true"> QProgressBar {
border: 2px solid grey;
border-radius: 5px;
}
QProgressBar::chunk {
background-color: #05B8CC;
width: 20px;
}
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
}</string>
</property>
<property name="value">
<number>24</number>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar_2">
<property name="styleSheet">
<string notr="true"> QProgressBar::chunk {
background-color: #CD96CD;
width: 10px;
margin: 0.5px;
}
QProgressBar {
border: 2px solid grey;
border-radius: 5px;
text-align: center;
}</string>
</property>
<property name="value">
<number>24</number>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar_3">
<property name="styleSheet">
<string notr="true">QProgressBar:horizontal {border: 1px solid gray; border-radius: 3px; background: white; padding: 1px; }
QProgressBar::chunk:horizontal { background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, stop: 0 green, stop: 1 lightgrey);}</string>
</property>
<property name="minimum">
<number>25</number>
</property>
<property name="maximum">
<number>100</number>
</property>
<property name="value">
<number>75</number>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar_4">
<property name="styleSheet">
<string notr="true">
QProgressBar::chunk {
background:
qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0,
stop:0 rgba(0, 0, 0,0), stop:0.5 rgba(235, 148, 61, 255), stop:1 rgba(0, 0, 0, 0)) ;
width: 100px;
}
QProgressBar {
border: 2px dashed grey;
border-radius: 5px;
}</string>
</property>
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>0</number>
</property>
<property name="value">
<number>-1</number>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>41</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,224 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="styleSheet">
<string notr="true"> QTabWidget::pane { / * The tab widget frame * /
border-top: 2px solid #C2C7CB;
}
QTabWidget::tab-bar {
left: 5px; / * move to the right by 5px * /
}
/ * Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget * /
QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid #C4C4C3;
border-bottom-color: #C2C7CB; / * same as the pane color * /
border-top-left-radius: 4px;
border-top-right-radius: 4px;
min-width: 8ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
QTabBar::tab:selected {
border-color: #9B9B9B;
border-bottom-color: #C2C7CB; / * same as pane color * /
}
QTabBar::tab:!selected {
margin-top: 2px; / * make non-selected tabs look smaller * /
}
</string>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string/>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget_2">
<property name="styleSheet">
<string notr="true">QTabWidget::pane { / * The tab widget frame * /
border-top: 2px solid #C2C7CB;
}
QTabWidget::tab-bar {
left: 5px; / * move to the right by 5px * /
}
/ * Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget * /
QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid #C4C4C3;
border-bottom-color: #C2C7CB; / * same as the pane color * /
border-top-left-radius: 4px;
border-top-right-radius: 4px;
min-width: 8ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
QTabBar::tab:selected {
border-color: #9B9B9B;
border-bottom-color: #C2C7CB; / * same as pane color * /
}
QTabBar::tab:!selected {
margin-top: 2px; / * make non-selected tabs look smaller * /
}
/ * make use of negative margins for overlapping tabs * /
QTabBar::tab:selected {
/ * expand/overlap to the left and right by 4px * /
margin-left: -4px;
margin-right: -4px;
}
QTabBar::tab:first:selected {
margin-left: 0; / * the first selected tab has nothing to overlap with on the left * /
}
QTabBar::tab:last:selected {
margin-right: 0; / * the last selected tab has nothing to overlap with on the right * /
}
QTabBar::tab:only-one {
margin: 0; / * if there is only one tab, we don't want overlapping margins * /
}</string>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_7">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string/>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget_3">
<property name="styleSheet">
<string notr="true"> QTabWidget::pane { / * The tab widget frame * /
border-top: 2px solid #C2C7CB;
position: absolute;
top: -0.5em;
}
QTabWidget::tab-bar {
alignment: center;
}
/ * Style the tab using the tab sub-control. Note that
it reads QTabBar _not_ QTabWidget * /
QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid #C4C4C3;
border-bottom-color: #C2C7CB; / * same as the pane color * /
border-top-left-radius: 4px;
border-top-right-radius: 4px;
min-width: 8ex;
padding: 2px;
}
QTabBar::tab:selected, QTabBar::tab:hover {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #fafafa, stop: 0.4 #f4f4f4,
stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
}
QTabBar::tab:selected {
border-color: #9B9B9B;
border-bottom-color: #C2C7CB; / * same as pane color * /
}</string>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<widget class="QWidget" name="tab_6">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_9">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_8">
<attribute name="title">
<string/>
</attribute>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,57 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>212</width>
<height>108</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { padding: 20px; }</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Text not cropped</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>258</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>218</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>207</width>
<height>69</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { border-image: url(&quot;images/pushbutton.png&quot;) 5 5 5 5; border-radius:8px; }</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Border image and radius</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,601 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>393</width>
<height>347</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QScrollArea { background:red;
border: 5px dashed blue; }
QScrollArea .QWidget { background:transparent;
border: 5px dotted green;}
QScrollArea::corner { background:yellow; }
QScrollBar:horizontal {
border: 2px solid green;
background: cyan;
height: 15px;
margin: 0px 40px 0 0px;
}
QScrollBar::handle:horizontal {
background: gray;
min-width: 20px;
}
QScrollBar::add-line:horizontal {
background: blue;
width: 16px;
subcontrol-position: right;
subcontrol-origin: margin;
border: 2px solid black;
}
QScrollBar::sub-line:horizontal {
background: magenta;
width: 16px;
subcontrol-position: top right;
subcontrol-origin: margin;
border: 2px solid black;
position: absolute;
right: 20px;
}
QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal {
width: 3px;
height: 3px;
background: pink;
}
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
background: none;
}
QScrollBar:vertical {
border: 2px solid grey;
background: #32CC99;
width: 15px;
margin: 20px 0px 20px 0px;
}
QScrollBar::handle:vertical {
background: white;
min-height: 20px;
}
QScrollBar::add-line:vertical {
border: 2px solid grey;
background: #32CC99;
height: 20px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical {
border: 2px solid grey;
background: #32CC99;
height: 20px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar:left-arrow:vertical, QScrollBar::right-arrow:vertical {
border: 2px solid grey;
width: 3px;
height: 3px;
background: white;
}
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}
</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>520</width>
<height>532</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QRadioButton" name="radioButton_56">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QRadioButton" name="radioButton_83">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="radioButton_82">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QRadioButton" name="radioButton_84">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="radioButton_57">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QRadioButton" name="radioButton_62">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="radioButton_59">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QRadioButton" name="radioButton_55">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QRadioButton" name="radioButton_60">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QRadioButton" name="radioButton_61">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QRadioButton" name="radioButton_58">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QRadioButton" name="radioButton_63">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="6" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>81</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QRadioButton" name="radioButton_64">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_65">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_66">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_67">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_68">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_69">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_70">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_71">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_72">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2">
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QRadioButton" name="radioButton_73">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_74">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_75">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_76">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_77">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_78">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_79">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_80">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_81">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" colspan="3">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QRadioButton" name="radioButton_9">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_6">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_7">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_3">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_5">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_4">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_8">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_2">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="radioButton_10">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_11">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_12">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_13">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_14">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_15">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_16">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_17">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_18">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QRadioButton" name="radioButton_19">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="radioButton_20">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="radioButton_21">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="radioButton_22">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QRadioButton" name="radioButton_23">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QRadioButton" name="radioButton_24">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QRadioButton" name="radioButton_25">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QRadioButton" name="radioButton_26">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QRadioButton" name="radioButton_27">
<property name="text">
<string>RadioButton</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,197 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>407</width>
<height>339</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QAbstractScrollArea { border: 2px dashed #e12; }
QHeaderView { border-color: blue; }
</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPlainTextEdit" name="plainTextEdit">
<property name="plainText">
<string>Note that the task 257517 requires to scroll down, and check that the backgroud is still filled with the base color (white by default)
x
x
x
x
x
x
x
x
</string>
</property>
</widget>
</item>
<item>
<widget class="QTableWidget" name="tableWidget">
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<row>
<property name="text">
<string>New Row</string>
</property>
</row>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
<column>
<property name="text">
<string>New Column</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QTextEdit" name="textEdit">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'DejaVu Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;x&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,63 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>424</width>
<height>364</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true"> QSplitter::handle:vertical {
image: url(images/splitter_horizontal.png);
}
QSplitter::handle:horizontal {
image: url(images/splitter_vertical.png);
}
#big_splitter::handle { background-color: blue; border: 3px dashed green; height:50px; }
QSplitter::handle:hover {
background-color: qlineargradient(spread:repeat, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 0, 0, 255), stop:0.17 rgba(255, 0, 0, 255), stop:0.18 rgba(255, 255, 255, 255), stop:0.210212 rgba(255, 255, 255, 255), stop:0.220212 rgba(0, 16, 255, 255), stop:0.279897 rgba(0, 16, 255, 255), stop:0.289897 rgba(255, 255, 255, 255), stop:0.32 rgba(255, 255, 255, 255), stop:0.33 rgba(255, 0, 0, 255), stop:1 rgba(255, 0, 0, 255))
}
QSplitter::handle:pressed {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(9, 41, 4, 255), stop:0.085 rgba(2, 79, 0, 255), stop:0.19 rgba(50, 147, 22, 255), stop:0.275 rgba(236, 191, 49, 255), stop:0.39 rgba(243, 61, 34, 255), stop:0.555 rgba(135, 81, 60, 255), stop:0.667 rgba(121, 75, 255, 255), stop:0.825 rgba(164, 255, 244, 255), stop:0.885 rgba(104, 222, 71, 255), stop:1 rgba(93, 128, 0, 255));
}</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QSplitter" name="splitter_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QSplitter" name="big_splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="QTextEdit" name="textEdit"/>
<widget class="QTextEdit" name="textEdit_5"/>
<widget class="QTextEdit" name="textEdit_4"/>
</widget>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="QTextEdit" name="textEdit_2"/>
<widget class="QTextEdit" name="textEdit_3"/>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,104 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>379</width>
<height>277</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">#tabWidget QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border: 2px solid #C4C4C3;
border-bottom-color: #C2C7CB; /* same as the pane color */
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 2px;
}
#tabWidget_2 QTabBar::tab {
border: 3px solid red;
}
#tabWidget_3 QTabBar::tab {
margin: 5px;
}
</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
</property>
<property name="tabsClosable">
<bool>true</bool>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget_2">
<property name="currentIndex">
<number>1</number>
</property>
<property name="tabsClosable">
<bool>false</bool>
</property>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget_3">
<property name="currentIndex">
<number>1</number>
</property>
<property name="tabsClosable">
<bool>true</bool>
</property>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_6">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,128 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">*{}
#tabWidget QTabBar::close-button
{
background: blue;
border: 2px dotted red;
subcontrol-position: top;
}
#tabWidget_2 QTabBar::close-button
{
image: url(images/checkbox_checked.png);
subcontrol-position: left;
}
#tabWidget_2 QTabBar::close-button:hover
{
image: url(images/checkbox_unchecked_hover.png);
}
#tabWidget_3 QTabBar::close-button
{
border-image: url(images/pushbutton.png) 3px;
border-width:3px;
}
</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="tabsClosable">
<bool>true</bool>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Tab 1</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Test the close button in the tabbar</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item row="0" column="1" rowspan="2">
<widget class="QTabWidget" name="tabWidget_3">
<property name="tabPosition">
<enum>QTabWidget::East</enum>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<property name="tabsClosable">
<bool>true</bool>
</property>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_6">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item row="1" column="0">
<widget class="QTabWidget" name="tabWidget_2">
<property name="tabPosition">
<enum>QTabWidget::South</enum>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<property name="tabsClosable">
<bool>true</bool>
</property>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,306 +0,0 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>646</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QTabWidget" name="tabWidget_2" >
<property name="styleSheet" >
<string>
QTabBar::tab:bottom {
min-width: 15px;
padding: 3px 15px 3px 10px;
border: 1px solid #7f7f7f;
background: qlineargradient(x1: 0, y1: 1, x2: 0,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-right-radius: 35px 21px;
}
QTabBar::tab:left {
padding: 10px 3px 15px 3px;
border: 1px solid #7f7f7f;
border-left-width: 0px;
background: qlineargradient(x1: 1, y1: 0, x2: 0,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-right-radius: 21px 35px;
margin-right: 2px;
}
QTabBar:right {subcontrol-origin: padding;}
QTabBar::tab:right {
padding: 10px 3px 15px 5px;
border: 1px solid #7f7f7f;
background: qlineargradient(x1: 0, y1: 0, x2: 1,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-left-radius: 21px 35px;
margin-left: 2px;
}
QTabBar::tab:bottom:!last { margin-right: -10px;}
QTabBar::tab:left:!last { margin-bottom: -10px;}
QTabBar::tab:right:!last { margin-bottom: -10px;}
QTabBar::tab:bottom:selected {
background: qlineargradient(x1: 0, y1: 1, x2: 0,y2: 0,
stop: .3 #CFCFCF, stop: 1 #FFFFFF);
}
QTabBar::tab:left:selected {
background: qlineargradient(x1: 1, y1: 0, x2: 0,y2: 0,
stop: .3 #DFDFDF, stop: 1 #F0F0F0);
}
QTabBar::tab:right:selected {
background: qlineargradient(x1: 0, y1: 0, x2: 1,y2: 0,
stop: .3 #DFDFDF, stop: 1 #F0F0F0);
}
</string>
</property>
<property name="tabPosition" >
<enum>QTabWidget::South</enum>
</property>
<property name="currentIndex" >
<number>3</number>
</property>
<widget class="QWidget" name="tab_5" >
<attribute name="title" >
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_6" >
<attribute name="title" >
<string>Page</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_7" >
<attribute name="title" >
<string>Page</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_8" >
<attribute name="title" >
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget_3" >
<property name="styleSheet" >
<string>
QTabBar::tab:bottom {
min-width: 15px;
padding: 3px 15px 3px 10px;
border: 1px solid #7f7f7f;
background: qlineargradient(x1: 0, y1: 1, x2: 0,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-right-radius: 35px 21px;
}
QTabBar::tab:left {
padding: 10px 3px 15px 3px;
border: 1px solid #7f7f7f;
border-left-width: 0px;
background: qlineargradient(x1: 1, y1: 0, x2: 0,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-right-radius: 21px 35px;
margin-right: 2px;
}
QTabBar:right {subcontrol-origin: padding;}
QTabBar::tab:right {
padding: 10px 3px 15px 5px;
border: 1px solid #7f7f7f;
background: qlineargradient(x1: 0, y1: 0, x2: 1,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-left-radius: 21px 35px;
margin-left: 2px;
}
QTabBar::tab:bottom:!last { margin-right: -10px;}
QTabBar::tab:left:!last { margin-bottom: -10px;}
QTabBar::tab:right:!last { margin-bottom: -10px;}
QTabBar::tab:bottom:selected {
background: qlineargradient(x1: 0, y1: 1, x2: 0,y2: 0,
stop: .3 #CFCFCF, stop: 1 #FFFFFF);
}
QTabBar::tab:left:selected {
background: qlineargradient(x1: 1, y1: 0, x2: 0,y2: 0,
stop: .3 #DFDFDF, stop: 1 #F0F0F0);
}
QTabBar::tab:right:selected {
background: qlineargradient(x1: 0, y1: 0, x2: 1,y2: 0,
stop: .3 #DFDFDF, stop: 1 #F0F0F0);
}
</string>
</property>
<property name="tabPosition" >
<enum>QTabWidget::East</enum>
</property>
<property name="currentIndex" >
<number>3</number>
</property>
<widget class="QWidget" name="tab_9" >
<attribute name="title" >
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_10" >
<attribute name="title" >
<string>Page</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_11" >
<attribute name="title" >
<string>Page</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_12" >
<attribute name="title" >
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget" >
<property name="styleSheet" >
<string>
QTabBar::tab:bottom {
min-width: 15px;
padding: 3px 15px 3px 10px;
border: 1px solid #7f7f7f;
background: qlineargradient(x1: 0, y1: 1, x2: 0,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-right-radius: 35px 21px;
}
QTabBar::tab:left {
padding: 10px 3px 15px 3px;
border: 1px solid #7f7f7f;
border-left-width: 0px;
background: qlineargradient(x1: 1, y1: 0, x2: 0,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-right-radius: 21px 35px;
margin-right: 2px;
}
QTabBar:right {subcontrol-origin: padding;}
QTabBar::tab:right {
padding: 10px 3px 15px 5px;
border: 1px solid #7f7f7f;
background: qlineargradient(x1: 0, y1: 0, x2: 1,y2: 0,
stop: .3 #FFFFFF, stop: 1 #909090);
border-bottom-left-radius: 21px 35px;
margin-left: 2px;
}
QTabBar::tab:bottom:!last { margin-right: -10px;}
QTabBar::tab:left:!last { margin-bottom: -10px;}
QTabBar::tab:right:!last { margin-bottom: -10px;}
QTabBar::tab:bottom:selected {
background: qlineargradient(x1: 0, y1: 1, x2: 0,y2: 0,
stop: .3 #CFCFCF, stop: 1 #FFFFFF);
}
QTabBar::tab:left:selected {
background: qlineargradient(x1: 1, y1: 0, x2: 0,y2: 0,
stop: .3 #DFDFDF, stop: 1 #F0F0F0);
}
QTabBar::tab:right:selected {
background: qlineargradient(x1: 0, y1: 0, x2: 1,y2: 0,
stop: .3 #DFDFDF, stop: 1 #F0F0F0);
}
</string>
</property>
<property name="tabPosition" >
<enum>QTabWidget::West</enum>
</property>
<property name="currentIndex" >
<number>3</number>
</property>
<widget class="QWidget" name="tab" >
<attribute name="title" >
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_4" >
<attribute name="title" >
<string>Page</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_3" >
<attribute name="title" >
<string>Page</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_2" >
<attribute name="title" >
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,144 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>275</width>
<height>175</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">/* Some widget were not displaying the arrow if only the arrow was set */
*::down-arrow { image: url(&quot;images/arrow-down.png&quot;) }
*::up-arrow { image: url(&quot;images/arrow-up.png&quot;) }
</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="QComboBox" name="comboBox"/>
</item>
<item row="0" column="2" rowspan="5">
<widget class="QTreeWidget" name="treeWidget">
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="headerShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<attribute name="headerShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>1</string>
</property>
</column>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
<item>
<property name="text">
<string>New Item</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QSpinBox" name="spinBox"/>
</item>
<item row="1" column="1">
<widget class="QToolButton" name="toolButton">
<property name="text">
<string>foo</string>
</property>
<property name="arrowType">
<enum>Qt::DownArrow</enum>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QDoubleSpinBox" name="doubleSpinBox"/>
</item>
<item row="3" column="0" colspan="2">
<widget class="QPushButton" name="pushButton">
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,83 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>320</width>
<height>116</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">#spinbox1::up-button{
subcontrol-origin: border;
subcontrol-position: top left;
}
#spinbox1::down-button {
subcontrol-origin: border;
subcontrol-position: bottom left;
}
#spinbox2::up-button{
subcontrol-origin: border;
subcontrol-position: center left;
left: 0px;
height: 100%;
top: 0px;
}
#spinbox2::down-button {
subcontrol-origin: border;
subcontrol-position: center right;
right: 0px;
height: 100%;
top: 0px;
}
#spinbox3::up-button{
subcontrol-origin: border;
subcontrol-position: top left;
}
#spinbox4 { padding: 20px 1px; }
#spinbox4::up-button{
subcontrol-origin: border;
subcontrol-position: top center;
width:100%;
height: 20px;
}
#spinbox4::down-button {
subcontrol-origin: border;
subcontrol-position: bottom center;
width:100%;
height: 20px;
}
</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QSpinBox" name="spinbox1"/>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="spinbox2"/>
</item>
<item row="1" column="0">
<widget class="QSpinBox" name="spinbox3"/>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="spinbox4"/>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,329 +0,0 @@
<ui version="4.0" >
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>388</width>
<height>413</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget" >
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="nameLabel" >
<property name="text" >
<string>&amp;Name:</string>
</property>
<property name="buddy" >
<cstring>nameCombo</cstring>
</property>
</widget>
</item>
<item row="0" column="1" colspan="3" >
<widget class="QComboBox" name="nameCombo" >
<property name="toolTip" >
<string>Specify your name</string>
</property>
<property name="editable" >
<bool>true</bool>
</property>
<property name="currentIndex" >
<number>-1</number>
</property>
<item>
<property name="text" >
<string>Girish</string>
</property>
</item>
<item>
<property name="text" >
<string>Jasmin</string>
</property>
</item>
<item>
<property name="text" >
<string>Simon</string>
</property>
</item>
<item>
<property name="text" >
<string>Zack</string>
</property>
</item>
</widget>
</item>
<item row="1" column="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2" >
<widget class="QRadioButton" name="femaleRadioButton" >
<property name="toolTip" >
<string>Check this if you are female</string>
</property>
<property name="text" >
<string>&amp;Female</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="4" >
<widget class="QCheckBox" name="agreeCheckBox" >
<property name="toolTip" >
<string>Please read the license before checking this</string>
</property>
<property name="text" >
<string>I &amp;accept the terms and conditions</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QRadioButton" name="maleRadioButton" >
<property name="toolTip" >
<string>Check this if you are male</string>
</property>
<property name="text" >
<string>&amp;Male</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="genderLabel" >
<property name="text" >
<string>Gender:</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="3" >
<widget class="QSpinBox" name="ageSpinBox" >
<property name="toolTip" >
<string>Specify your age</string>
</property>
<property name="statusTip" >
<string>Specify your age here</string>
</property>
<property name="minimum" >
<number>12</number>
</property>
<property name="value" >
<number>22</number>
</property>
</widget>
</item>
<item row="7" column="2" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="ageLabel" >
<property name="text" >
<string>&amp;Age:</string>
</property>
<property name="buddy" >
<cstring>ageSpinBox</cstring>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="passwordLabel" >
<property name="text" >
<string>&amp;Password:</string>
</property>
<property name="buddy" >
<cstring>passwordEdit</cstring>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3" >
<widget class="QLineEdit" name="passwordEdit" >
<property name="toolTip" >
<string>Specify your password</string>
</property>
<property name="statusTip" >
<string>Specify your password here</string>
</property>
<property name="text" >
<string>Password</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Profession</string>
</property>
<property name="buddy" >
<cstring>professionList</cstring>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="countryLabel" >
<property name="text" >
<string>&amp;Country</string>
</property>
<property name="buddy" >
<cstring>professionList</cstring>
</property>
</widget>
</item>
<item row="5" column="1" colspan="3" >
<widget class="QListWidget" name="professionList" >
<property name="toolTip" >
<string>Select your profession</string>
</property>
<property name="statusTip" >
<string>Select your profession</string>
</property>
<property name="whatsThis" >
<string>Select your profession</string>
</property>
<property name="currentRow" >
<number>1</number>
</property>
<item>
<property name="text" >
<string>Developer</string>
</property>
</item>
<item>
<property name="text" >
<string>Student</string>
</property>
</item>
<item>
<property name="text" >
<string>Fisherman</string>
</property>
</item>
</widget>
</item>
<item row="4" column="1" colspan="3" >
<widget class="QComboBox" name="countryCombo" >
<property name="toolTip" >
<string>Specify your country</string>
</property>
<property name="statusTip" >
<string>Specify your country here</string>
</property>
<property name="currentIndex" >
<number>2</number>
</property>
<item>
<property name="text" >
<string>Germany</string>
</property>
</item>
<item>
<property name="text" >
<string>India</string>
</property>
</item>
<item>
<property name="text" >
<string>Norway</string>
</property>
</item>
<item>
<property name="text" >
<string>United States Of America</string>
</property>
</item>
<item>
<property name="text" >
<string>United Kingdom</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>388</width>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menu_File" >
<property name="title" >
<string>&amp;File</string>
</property>
<addaction name="editStyleAction" />
<addaction name="separator" />
<addaction name="exitAction" />
</widget>
<widget class="QMenu" name="menu_Help" >
<property name="title" >
<string>&amp;Help</string>
</property>
<addaction name="aboutAction" />
<addaction name="separator" />
<addaction name="aboutQtAction" />
</widget>
<addaction name="menu_File" />
<addaction name="menu_Help" />
</widget>
<widget class="QStatusBar" name="statusbar" />
<action name="exitAction" >
<property name="text" >
<string>&amp;Exit</string>
</property>
</action>
<action name="aboutQtAction" >
<property name="text" >
<string>About Qt</string>
</property>
</action>
<action name="editStyleAction" >
<property name="text" >
<string>Edit &amp;Style</string>
</property>
</action>
<action name="aboutAction" >
<property name="text" >
<string>About</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>maleRadioButton</tabstop>
<tabstop>femaleRadioButton</tabstop>
<tabstop>ageSpinBox</tabstop>
<tabstop>passwordEdit</tabstop>
<tabstop>professionList</tabstop>
<tabstop>agreeCheckBox</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,47 +0,0 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>451</width>
<height>322</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QPushButton" name="loadFromFileButton" >
<property name="text" >
<string>Load Image From File...</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Launch two of these dialogs. In the first, press the top button and load an image from a file. In the second, press the bottom button and display the loaded image from shared memory.</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QPushButton" name="loadFromSharedMemoryButton" >
<property name="text" >
<string>Display Image From Shared Memory</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,134 +0,0 @@
<ui version="4.0" >
<class>DownloadItem</class>
<widget class="QWidget" name="DownloadItem" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>423</width>
<height>110</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" >
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="fileIcon" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Ico</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="SqueezeLabel" native="1" name="fileNameLabel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" stdset="0" >
<string>Filename</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar" >
<property name="value" >
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="SqueezeLabel" native="1" name="downloadInfoLabel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" stdset="0" >
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>17</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="tryAgainButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Try Again</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="stopButton" >
<property name="text" >
<string>Stop</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="openButton" >
<property name="text" >
<string>Open</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>17</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SqueezeLabel</class>
<extends>QWidget</extends>
<header>squeezelabel.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -1,83 +0,0 @@
<ui version="4.0" >
<class>DownloadDialog</class>
<widget class="QDialog" name="DownloadDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>332</width>
<height>252</height>
</rect>
</property>
<property name="windowTitle" >
<string>Downloads</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" colspan="3" >
<widget class="EditTableView" name="downloadsView" />
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<widget class="QPushButton" name="cleanupButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Clean up</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>58</width>
<height>24</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="itemCount" >
<property name="text" >
<string>0 Items</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<spacer name="horizontalSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>148</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>EditTableView</class>
<extends>QTableView</extends>
<header>edittableview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -1,87 +0,0 @@
<ui version="4.0" >
<class>embeddedDialog</class>
<widget class="QDialog" name="embeddedDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>407</width>
<height>134</height>
</rect>
</property>
<property name="windowTitle" >
<string>Embedded Dialog</string>
</property>
<layout class="QFormLayout" name="formLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Layout Direction:</string>
</property>
<property name="buddy" >
<cstring>layoutDirection</cstring>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QComboBox" name="layoutDirection" >
<item>
<property name="text" >
<string>Left to Right</string>
</property>
</item>
<item>
<property name="text" >
<string>Right to Left</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Select Font:</string>
</property>
<property name="buddy" >
<cstring>fontComboBox</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QFontComboBox" name="fontComboBox" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Style:</string>
</property>
<property name="buddy" >
<cstring>style</cstring>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="style" />
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Layout spacing:</string>
</property>
<property name="buddy" >
<cstring>spacing</cstring>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QSlider" name="spacing" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,79 +0,0 @@
<ui version="4.0" >
<class>FilesPage</class>
<widget class="QWidget" name="FilesPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>242</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="fileLabel" >
<property name="text" >
<string>Files:</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item rowspan="3" row="1" column="0" >
<widget class="QListWidget" name="fileListWidget" />
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="removeButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Remove</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove All</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>75</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,67 +0,0 @@
<ui version="4.0" >
<class>FilterNameDialogClass</class>
<widget class="QDialog" name="FilterNameDialogClass" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>312</width>
<height>95</height>
</rect>
</property>
<property name="windowTitle" >
<string>FilterNameDialog</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Filter Name:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QLineEdit" name="lineEdit" />
</item>
<item row="1" column="0" colspan="3" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<resources/>
<connections/>
</ui>

View File

@ -1,125 +0,0 @@
<ui version="4.0" >
<class>FilterPage</class>
<widget class="QWidget" name="FilterPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>419</width>
<height>243</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Filter attributes for current documentation (comma separated list):</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLineEdit" name="filterLineEdit" />
</item>
<item row="4" column="0" >
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Custom Filters</string>
</property>
<layout class="QGridLayout" >
<item rowspan="3" row="0" column="0" >
<widget class="QTreeWidget" name="customFilterWidget" >
<property name="columnCount" >
<number>2</number>
</property>
<column>
<property name="text" >
<string>1</string>
</property>
</column>
<column>
<property name="text" >
<string>2</string>
</property>
</column>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="addButton" >
<property name="text" >
<string>Add</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>Remove</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,265 +0,0 @@
<ui version="4.0" >
<comment>*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<class>FindDialog</class>
<widget class="QDialog" name="FindDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>414</width>
<height>170</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Maximum" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Find</string>
</property>
<property name="whatsThis" >
<string>This window allows you to search for some text in the translation source file.</string>
</property>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>11</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="findWhat" >
<property name="text" >
<string>&amp;Find what:</string>
</property>
<property name="buddy" >
<cstring>led</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="led" >
<property name="whatsThis" >
<string>Type in the text to search for.</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Options</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QCheckBox" name="sourceText" >
<property name="whatsThis" >
<string>Source texts are searched when checked.</string>
</property>
<property name="text" >
<string>&amp;Source texts</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QCheckBox" name="translations" >
<property name="whatsThis" >
<string>Translations are searched when checked.</string>
</property>
<property name="text" >
<string>&amp;Translations</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QCheckBox" name="matchCase" >
<property name="whatsThis" >
<string>Texts such as 'TeX' and 'tex' are considered as different when checked.</string>
</property>
<property name="text" >
<string>&amp;Match case</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QCheckBox" name="comments" >
<property name="whatsThis" >
<string>Comments and contexts are searched when checked.</string>
</property>
<property name="text" >
<string>&amp;Comments</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QCheckBox" name="ignoreAccelerators" >
<property name="text" >
<string>Ignore &amp;accelerators</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="findNxt" >
<property name="whatsThis" >
<string>Click here to find the next occurrence of the text you typed in.</string>
</property>
<property name="text" >
<string>Find Next</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
<property name="flat" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancel" >
<property name="whatsThis" >
<string>Click here to close this window.</string>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>20</width>
<height>51</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>led</tabstop>
<tabstop>findNxt</tabstop>
<tabstop>cancel</tabstop>
<tabstop>comments</tabstop>
<tabstop>sourceText</tabstop>
<tabstop>translations</tabstop>
<tabstop>matchCase</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>cancel</sender>
<signal>clicked()</signal>
<receiver>FindDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>372</x>
<y>58</y>
</hint>
<hint type="destinationlabel" >
<x>373</x>
<y>109</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,311 +0,0 @@
<ui version="4.0" >
<comment>*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<class>FormWindowSettings</class>
<widget class="QDialog" name="FormWindowSettings" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>433</width>
<height>465</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form Settings</string>
</property>
<layout class="QGridLayout" >
<item row="6" column="0" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="layoutDefaultGroupBox" >
<property name="title" >
<string>Layout &amp;Default</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>&amp;Spacing:</string>
</property>
<property name="buddy" >
<cstring>defaultSpacingSpinBox</cstring>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>&amp;Margin:</string>
</property>
<property name="buddy" >
<cstring>defaultMarginSpinBox</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="defaultSpacingSpinBox" />
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="defaultMarginSpinBox" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="layoutFunctionGroupBox" >
<property name="title" >
<string>&amp;Layout Function</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QLineEdit" name="spacingFunctionLineEdit" />
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="marginFunctionLineEdit" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Ma&amp;rgin:</string>
</property>
<property name="buddy" >
<cstring>marginFunctionLineEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_3_2" >
<property name="text" >
<string>Spa&amp;cing:</string>
</property>
<property name="buddy" >
<cstring>spacingFunctionLineEdit</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="pixmapFunctionGroupBox_2" >
<property name="title" >
<string>&amp;Author</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="authorLineEdit" />
</item>
</layout>
</widget>
</item>
<item rowspan="2" row="3" column="0" >
<widget class="QGroupBox" name="includeHintsGroupBox" >
<property name="title" >
<string>&amp;Include Hints</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextEdit" name="includeHintsTextEdit" />
</item>
</layout>
</widget>
</item>
<item row="3" column="1" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="pixmapFunctionGroupBox" >
<property name="title" >
<string>&amp;Pixmap Function</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="pixmapFunctionLineEdit" />
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="4" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>111</width>
<height>115</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="2" >
<widget class="qdesigner_internal::GridPanel" name="gridPanel" >
<property name="title" >
<string>Grid</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>qdesigner_internal::GridPanel</class>
<extends>QGroupBox</extends>
<header location="global" >gridpanel_p.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>authorLineEdit</tabstop>
<tabstop>defaultMarginSpinBox</tabstop>
<tabstop>defaultSpacingSpinBox</tabstop>
<tabstop>marginFunctionLineEdit</tabstop>
<tabstop>spacingFunctionLineEdit</tabstop>
<tabstop>pixmapFunctionLineEdit</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>FormWindowSettings</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>294</x>
<y>442</y>
</hint>
<hint type="destinationlabel" >
<x>150</x>
<y>459</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>FormWindowSettings</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>373</x>
<y>444</y>
</hint>
<hint type="destinationlabel" >
<x>357</x>
<y>461</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,69 +0,0 @@
<ui version="4.0" >
<class>GeneralPage</class>
<widget class="QWidget" name="GeneralPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>243</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Namespace:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="namespaceLineEdit" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Virtual Folder:</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLineEdit" name="folderLineEdit" />
</item>
<item row="0" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,144 +0,0 @@
<ui version="4.0" >
<class>qdesigner_internal::GridPanel</class>
<widget class="QWidget" name="qdesigner_internal::GridPanel" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>393</width>
<height>110</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="m_gridGroupBox" >
<property name="title" >
<string>Grid</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="m_visibleCheckBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Visible</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Grid &amp;X</string>
</property>
<property name="buddy" >
<cstring>m_deltaXSpinBox</cstring>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QSpinBox" name="m_deltaXSpinBox" >
<property name="minimum" >
<number>2</number>
</property>
<property name="maximum" >
<number>100</number>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QCheckBox" name="m_snapXCheckBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Snap</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="m_resetButton" >
<property name="text" >
<string>Reset</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Grid &amp;Y</string>
</property>
<property name="buddy" >
<cstring>m_deltaYSpinBox</cstring>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QSpinBox" name="m_deltaYSpinBox" >
<property name="minimum" >
<number>2</number>
</property>
<property name="maximum" >
<number>100</number>
</property>
</widget>
</item>
<item row="1" column="3" >
<widget class="QCheckBox" name="m_snapYCheckBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Snap</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -1,404 +0,0 @@
<ui version="4.0" >
<author></author>
<comment>*********************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the autotests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
*********************************************************************</comment>
<exportmacro></exportmacro>
<class>HelpDialog</class>
<widget class="QWidget" name="HelpDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>274</width>
<height>417</height>
</rect>
</property>
<property name="windowTitle" >
<string>Help</string>
</property>
<property name="whatsThis" >
<string>&lt;b>Help&lt;/b>&lt;p>Choose the topic you want help on from the contents list, or search the index for keywords.&lt;/p></string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTabWidget" name="tabWidget" >
<property name="whatsThis" >
<string>Displays help topics organized by category, index or bookmarks. Another tab inherits the full text search.</string>
</property>
<widget class="QWidget" name="contentPage" >
<attribute name="title" >
<string>Con&amp;tents</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTreeWidget" name="listContents" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>&lt;b>Help topics organized by category.&lt;/b>&lt;p>Double-click an item to see the topics in that category. To view a topic, just double-click it.&lt;/p></string>
</property>
<property name="rootIsDecorated" >
<bool>true</bool>
</property>
<property name="uniformRowHeights" >
<bool>true</bool>
</property>
<column>
<property name="text" >
<string>column 1</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="indexPage" >
<attribute name="title" >
<string>&amp;Index</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="TextLabel1" >
<property name="text" >
<string>&amp;Look For:</string>
</property>
<property name="buddy" >
<cstring>editIndex</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="editIndex" >
<property name="toolTip" >
<string>Enter keyword</string>
</property>
<property name="whatsThis" >
<string>&lt;b>Enter a keyword.&lt;/b>&lt;p>The list will select an item that matches the entered string best.&lt;/p></string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="listIndex" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>&lt;b>List of available help topics.&lt;/b>&lt;p>Double-click on an item to open its help page. If more than one is found, you must specify which page you want.&lt;/p></string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="bookmarkPage" >
<attribute name="title" >
<string>&amp;Bookmarks</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTreeWidget" name="listBookmarks" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>Displays the list of bookmarks.</string>
</property>
<property name="uniformRowHeights" >
<bool>true</bool>
</property>
<column>
<property name="text" >
<string>column 1</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonAdd" >
<property name="toolTip" >
<string>Add new bookmark</string>
</property>
<property name="whatsThis" >
<string>Add the currently displayed page as a new bookmark.</string>
</property>
<property name="text" >
<string>&amp;New</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonRemove" >
<property name="toolTip" >
<string>Delete bookmark</string>
</property>
<property name="whatsThis" >
<string>Delete the selected bookmark.</string>
</property>
<property name="text" >
<string>&amp;Delete</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="searchPage" >
<attribute name="title" >
<string>&amp;Search</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="3" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1_2" >
<property name="text" >
<string>Searching f&amp;or:</string>
</property>
<property name="buddy" >
<cstring>termsEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLineEdit" name="termsEdit" >
<property name="toolTip" >
<string>Enter searchword(s).</string>
</property>
<property name="whatsThis" >
<string>&lt;b>Enter search word(s).&lt;/b>&lt;p>Enter here the word(s) you are looking for. The words may contain wildcards (*). For a sequence of words quote them.&lt;/p></string>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QListWidget" name="resultBox" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>&lt;b>Found documents&lt;/b>&lt;p>This list contains all found documents from the last search. The documents are ordered, i.e. the first document has the most matches.&lt;/p></string>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="TextLabel2" >
<property name="text" >
<string>Found &amp;Documents:</string>
</property>
<property name="buddy" >
<cstring>resultBox</cstring>
</property>
</widget>
</item>
<item row="2" column="0" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="helpButton" >
<property name="toolTip" >
<string>Display the help page.</string>
</property>
<property name="whatsThis" >
<string>Display the help page for the full text search.</string>
</property>
<property name="text" >
<string>He&amp;lp</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>61</width>
<height>21</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="searchButton" >
<property name="toolTip" >
<string>Start searching.</string>
</property>
<property name="whatsThis" >
<string>Pressing this button starts the search.</string>
</property>
<property name="text" >
<string>&amp;Search</string>
</property>
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QFrame" name="framePrepare" >
<property name="frameShape" >
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>3</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="labelPrepare" >
<property name="text" >
<string>Preparing...</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressPrepare" />
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>listContents</tabstop>
<tabstop>editIndex</tabstop>
<tabstop>listIndex</tabstop>
<tabstop>listBookmarks</tabstop>
<tabstop>buttonAdd</tabstop>
<tabstop>buttonRemove</tabstop>
<tabstop>termsEdit</tabstop>
<tabstop>searchButton</tabstop>
<tabstop>helpButton</tabstop>
<tabstop>resultBox</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -1,106 +0,0 @@
<ui version="4.0" >
<class>HistoryDialog</class>
<widget class="QDialog" name="HistoryDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>758</width>
<height>450</height>
</rect>
</property>
<property name="windowTitle" >
<string>History</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>252</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<widget class="SearchLineEdit" name="search" />
</item>
<item row="1" column="0" colspan="2" >
<widget class="EditTreeView" name="tree" />
</item>
<item row="2" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>&amp;Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove &amp;All</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SearchLineEdit</class>
<extends>QLineEdit</extends>
<header>searchlineedit.h</header>
</customwidget>
<customwidget>
<class>EditTreeView</class>
<extends>QTreeView</extends>
<header>edittreeview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>HistoryDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>472</x>
<y>329</y>
</hint>
<hint type="destinationlabel" >
<x>461</x>
<y>356</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,132 +0,0 @@
<ui version="4.0" >
<class>IdentifierPage</class>
<widget class="QWidget" name="IdentifierPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>242</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3" >
<widget class="QCheckBox" name="identifierCheckBox" >
<property name="text" >
<string>Create identifiers</string>
</property>
</widget>
</item>
<item row="1" column="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>161</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>30</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" >
<widget class="QRadioButton" name="globalButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Global prefix:</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="2" >
<widget class="QLineEdit" name="prefixLineEdit" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2" >
<widget class="QRadioButton" name="fileNameButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Inherit prefix from file names</string>
</property>
</widget>
</item>
<item row="4" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>globalButton</sender>
<signal>toggled(bool)</signal>
<receiver>prefixLineEdit</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>122</x>
<y>72</y>
</hint>
<hint type="destinationlabel" >
<x>161</x>
<y>71</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -1,389 +0,0 @@
<ui version="4.0" >
<comment></comment>
<class>ImageDialog</class>
<widget class="QDialog" >
<property name="objectName" >
<string notr="true" >ImageDialog</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>320</width>
<height>180</height>
</rect>
</property>
<property name="windowTitle" >
<string>Create Image</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="widthLabel" >
<property name="objectName" >
<string notr="true" >widthLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>27</y>
<width>67</width>
<height>22</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Width:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="heightLabel" >
<property name="objectName" >
<string notr="true" >heightLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>55</y>
<width>67</width>
<height>22</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Height:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QComboBox" name="colorDepthCombo" >
<property name="objectName" >
<string notr="true" >colorDepthCombo</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>83</y>
<width>227</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="insertPolicy" >
<enum>QComboBox::InsertAtBottom</enum>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="nameLineEdit" >
<property name="objectName" >
<string notr="true" >nameLineEdit</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>83</y>
<width>227</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Untitled image</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Normal</enum>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="spinBox" >
<property name="objectName" >
<string notr="true" >spinBox</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>1</y>
<width>227</width>
<height>20</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="buttonSymbols" >
<enum>QAbstractSpinBox::UpDownArrows</enum>
</property>
<property name="value" >
<number>32</number>
</property>
<property name="maximum" >
<number>1024</number>
</property>
<property name="minimum" >
<number>1</number>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="spinBox_2" >
<property name="objectName" >
<string notr="true" >spinBox_2</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>27</y>
<width>227</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="buttonSymbols" >
<enum>QAbstractSpinBox::UpDownArrows</enum>
</property>
<property name="value" >
<number>32</number>
</property>
<property name="maximum" >
<number>1024</number>
</property>
<property name="minimum" >
<number>1</number>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="nameLabel" >
<property name="objectName" >
<string notr="true" >nameLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>67</width>
<height>20</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Name:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="colorDepthLabel" >
<property name="objectName" >
<string notr="true" >colorDepthLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>83</y>
<width>67</width>
<height>22</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Color depth:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="objectName" >
<string notr="true" />
</property>
<property name="geometry" >
<rect>
<x>9</x>
<y>121</y>
<width>302</width>
<height>18</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="objectName" >
<string notr="true" />
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>128</width>
<height>24</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="objectName" >
<string notr="true" >okButton</string>
</property>
<property name="geometry" >
<rect>
<x>135</x>
<y>1</y>
<width>80</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="objectName" >
<string notr="true" >cancelButton</string>
</property>
<property name="geometry" >
<rect>
<x>221</x>
<y>1</y>
<width>80</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>nameLineEdit</tabstop>
<tabstop>spinBox</tabstop>
<tabstop>spinBox_2</tabstop>
<tabstop>colorDepthCombo</tabstop>
<tabstop>okButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
<connections>
<connection>
<sender>nameLineEdit</sender>
<signal>returnPressed()</signal>
<receiver>okButton</receiver>
<slot>animateClick()</slot>
<hints>
<hint type="sourcelabel" >
<x>-1</x>
<y>7</y>
</hint>
<hint type="destinationlabel" >
<x>-1</x>
<y>7</y>
</hint>
</hints>
</connection>
</connections>
</ui>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1006 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

Some files were not shown because too many files have changed in this diff Show More