Changeset View
Changeset View
Standalone View
Standalone View
src/importers/SimpleImporterConfigWidget.cpp
Show All 12 Lines | |||||
13 | * You should have received a copy of the GNU General Public License along with * | 13 | * You should have received a copy of the GNU General Public License along with * | ||
14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | 14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | ||
15 | ****************************************************************************************/ | 15 | ****************************************************************************************/ | ||
16 | 16 | | |||
17 | #include "SimpleImporterConfigWidget.h" | 17 | #include "SimpleImporterConfigWidget.h" | ||
18 | 18 | | |||
19 | #include "core/support/Debug.h" | 19 | #include "core/support/Debug.h" | ||
20 | 20 | | |||
21 | #include <KLineEdit> | 21 | #include <QLineEdit> | ||
22 | #include <KLocalizedString> | 22 | #include <KLocalizedString> | ||
23 | 23 | | |||
24 | #include <QBoxLayout> | 24 | #include <QBoxLayout> | ||
25 | #include <QGridLayout> | 25 | #include <QGridLayout> | ||
26 | #include <QLabel> | 26 | #include <QLabel> | ||
27 | #include <QSpacerItem> | 27 | #include <QSpacerItem> | ||
28 | 28 | | |||
29 | using namespace StatSyncing; | 29 | using namespace StatSyncing; | ||
Show All 12 Lines | 38 | { | |||
42 | m_layout->setColumnStretch( 1, 1 ); | 42 | m_layout->setColumnStretch( 1, 1 ); | ||
43 | 43 | | |||
44 | QBoxLayout *mainLayout = new QBoxLayout( QBoxLayout::TopToBottom ); | 44 | QBoxLayout *mainLayout = new QBoxLayout( QBoxLayout::TopToBottom ); | ||
45 | mainLayout->addLayout( m_layout, 0 ); | 45 | mainLayout->addLayout( m_layout, 0 ); | ||
46 | mainLayout->addStretch( 1 ); | 46 | mainLayout->addStretch( 1 ); | ||
47 | setLayout( mainLayout ); | 47 | setLayout( mainLayout ); | ||
48 | 48 | | |||
49 | addField( "name", i18nc( "Name of the synchronization target", "Target name" ), | 49 | addField( "name", i18nc( "Name of the synchronization target", "Target name" ), | ||
50 | new KLineEdit( targetName ), "text" ); | 50 | new QLineEdit( targetName ), "text" ); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | SimpleImporterConfigWidget::~SimpleImporterConfigWidget() | 53 | SimpleImporterConfigWidget::~SimpleImporterConfigWidget() | ||
54 | { | 54 | { | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | void | 57 | void | ||
58 | SimpleImporterConfigWidget::addField( const QString &configName, const QString &label, | 58 | SimpleImporterConfigWidget::addField( const QString &configName, const QString &label, | ||
Show All 39 Lines |