Changeset View
Changeset View
Standalone View
Standalone View
tests/kcompletionuitest.cpp
1 | #include "kcompletionuitest.h" | 1 | #include "kcompletionuitest.h" | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | #include <QApplication> | 3 | #include <QApplication> | ||
4 | #include <QLabel> | 4 | #include <QLabel> | ||
5 | #include <QListWidget> | 5 | #include <QListWidget> | ||
6 | #include <QPushButton> | 6 | #include <QPushButton> | ||
7 | #include <QLayout> | 7 | #include <QLayout> | ||
8 | #include <QGroupBox> | 8 | #include <QGroupBox> | ||
9 | 9 | | |||
10 | #include <klineedit.h> | 10 | #include <klineedit.h> | ||
11 | #include <khistorycombobox.h> | 11 | #include <khistorycombobox.h> | ||
12 | 12 | | |||
13 | /* | | |||
14 | * Constructs a Form1 which is a child of 'parent', with the | | |||
15 | * widget flags set to 'f' | | |||
16 | */ | | |||
17 | Form1::Form1(QWidget *parent) | 13 | Form1::Form1(QWidget *parent) | ||
18 | : QWidget(parent) | 14 | : QWidget(parent) | ||
19 | { | 15 | { | ||
20 | setAttribute(Qt::WA_DeleteOnClose); | 16 | setAttribute(Qt::WA_DeleteOnClose); | ||
21 | setObjectName(QStringLiteral("Form1")); | | |||
22 | resize(559, 465); | 17 | resize(559, 465); | ||
23 | setWindowTitle(QStringLiteral("Form1")); | 18 | setWindowTitle(QStringLiteral("Form1")); | ||
24 | Form1Layout = new QVBoxLayout(this); | 19 | Form1Layout = new QVBoxLayout(this); | ||
25 | 20 | | |||
26 | GroupBox1 = new QGroupBox(this); | 21 | GroupBox1 = new QGroupBox(this); | ||
27 | GroupBox1->setLayout(new QVBoxLayout()); | 22 | GroupBox1->setLayout(new QVBoxLayout()); | ||
28 | GroupBox1->setTitle(QStringLiteral("Completion Test")); | 23 | GroupBox1->setTitle(QStringLiteral("Completion Test")); | ||
29 | GroupBox1->layout()->setSpacing(0); | 24 | GroupBox1->layout()->setSpacing(0); | ||
30 | GroupBox1->layout()->setContentsMargins(0, 0, 0, 0); | 25 | GroupBox1->layout()->setContentsMargins(0, 0, 0, 0); | ||
31 | GroupBox1Layout = new QVBoxLayout; | 26 | GroupBox1Layout = new QVBoxLayout; | ||
32 | GroupBox1Layout->setAlignment(Qt::AlignTop); | 27 | GroupBox1Layout->setAlignment(Qt::AlignTop); | ||
33 | GroupBox1Layout->setSpacing(6); | | |||
34 | GroupBox1Layout->setMargin(11); | | |||
35 | GroupBox1->layout()->addItem(GroupBox1Layout); | 28 | GroupBox1->layout()->addItem(GroupBox1Layout); | ||
36 | GroupBox1Layout->setParent(GroupBox1->layout()); | 29 | GroupBox1Layout->setParent(GroupBox1->layout()); | ||
37 | 30 | | |||
38 | Layout9 = new QVBoxLayout; | 31 | Layout9 = new QVBoxLayout; | ||
39 | Layout9->setSpacing(6); | 32 | Layout9->setSpacing(6); | ||
40 | Layout9->setContentsMargins(0, 0, 0, 0); | 33 | Layout9->setContentsMargins(0, 0, 0, 0); | ||
41 | 34 | | |||
42 | Layout1 = new QHBoxLayout; | 35 | Layout1 = new QHBoxLayout; | ||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |