1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/****************************************************************************
** Form implementation generated from reading ui file 'app.ui'
**
** Created: Fri May 3 14:38:15 2002
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "app.h"
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a AppEdit which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
AppEdit::AppEdit( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "AppEdit" );
resize( 211, 241 );
setCaption( tr( "Application" ) );
AppEditLayout = new QGridLayout( this );
AppEditLayout->setSpacing( 6 );
AppEditLayout->setMargin( 11 );
TextLabel3 = new QLabel( this, "TextLabel3" );
TextLabel3->setText( tr( "Exec" ) );
AppEditLayout->addWidget( TextLabel3, 2, 0 );
TextLabel4 = new QLabel( this, "TextLabel4" );
TextLabel4->setText( tr( "Comment" ) );
AppEditLayout->addWidget( TextLabel4, 3, 0 );
TextLabel2 = new QLabel( this, "TextLabel2" );
TextLabel2->setText( tr( "Icon" ) );
AppEditLayout->addWidget( TextLabel2, 1, 0 );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setText( tr( "Name" ) );
AppEditLayout->addWidget( TextLabel1, 0, 0 );
iconLineEdit = new QLineEdit( this, "iconLineEdit" );
AppEditLayout->addWidget( iconLineEdit, 1, 1 );
nameLineEdit = new QLineEdit( this, "nameLineEdit" );
AppEditLayout->addWidget( nameLineEdit, 0, 1 );
commentLineEdit = new QLineEdit( this, "commentLineEdit" );
AppEditLayout->addWidget( commentLineEdit, 3, 1 );
execLineEdit = new QLineEdit( this, "execLineEdit" );
AppEditLayout->addWidget( execLineEdit, 2, 1 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
AppEditLayout->addItem( spacer, 4, 1 );
}
/*
* Destroys the object and frees any allocated resources
*/
AppEdit::~AppEdit()
{
// no need to delete child widgets, Qt does it all for us
}
|