From 928b81e3f45c7d80f793be09f55b778ac556a5a2 Mon Sep 17 00:00:00 2001 From: Michal Kubecek Date: Thu, 16 Apr 2015 14:49:19 +0200 Subject: automatic conversion of deregisterform.ui --- src/gui/deregisterform.cpp | 22 ++++++ src/gui/deregisterform.h | 17 +++++ src/gui/deregisterform.ui | 175 ++++++++++++++++++++------------------------ src/gui/deregisterform.ui.h | 26 ------- src/gui/twinkle.pro | 6 +- 5 files changed, 123 insertions(+), 123 deletions(-) create mode 100644 src/gui/deregisterform.cpp create mode 100644 src/gui/deregisterform.h delete mode 100644 src/gui/deregisterform.ui.h (limited to 'src/gui') diff --git a/src/gui/deregisterform.cpp b/src/gui/deregisterform.cpp new file mode 100644 index 0000000..d8ff0ce --- /dev/null +++ b/src/gui/deregisterform.cpp @@ -0,0 +1,22 @@ +#include "deregisterform.h" + +/* + * Constructs a DeregisterForm 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. + */ +DeregisterForm::DeregisterForm(QWidget* parent) + : QDialog(parent) +{ + setupUi(this); +} + +/* + * Destroys the object and frees any allocated resources + */ +DeregisterForm::~DeregisterForm() +{ + // no need to delete child widgets, Qt does it all for us +} diff --git a/src/gui/deregisterform.h b/src/gui/deregisterform.h new file mode 100644 index 0000000..96825fb --- /dev/null +++ b/src/gui/deregisterform.h @@ -0,0 +1,17 @@ +#ifndef DEREGISTERFORM_H +#define DEREGISTERFORM_H + +#include + +#include "ui_deregisterform.h" + +class DeregisterForm : public QDialog, private Ui::DeregisterForm +{ + Q_OBJECT + +public: + DeregisterForm(QWidget* parent = 0); + ~DeregisterForm(); +}; + +#endif // DEREGISTERFORM_H diff --git a/src/gui/deregisterform.ui b/src/gui/deregisterform.ui index fe70e5b..56f4cfe 100644 --- a/src/gui/deregisterform.ui +++ b/src/gui/deregisterform.ui @@ -1,105 +1,90 @@ - -DeregisterForm - - - DeregisterForm - + + + + + + DeregisterForm + - - 0 - 0 - 287 - 82 - + + 0 + 0 + 287 + 82 + - - 0 - 0 - 0 - 0 - + + 0 + 0 + 0 + 0 + - - Twinkle - Deregister + + Twinkle - Deregister - - - unnamed - - - - deregAllCheckBox - - - deregister all devices - - - - - layout21 - - - - unnamed - - - - spacer13 - - - Horizontal - - - Expanding - - - - 111 - 20 - - - - - - okPushButton - - - &OK - - - true - - - - - cancelPushButton - - - &Cancel - - - + + + + + deregister all devices + - - - + + + + + + + + 111 + 20 + + + + QSizePolicy::Expanding + + + Qt::Horizontal + + + + + + + &OK + + + true + + + + + + + &Cancel + + + + + + + + + qPixmapFromMimeSource + - okPushButton - clicked() - DeregisterForm - accept() + okPushButton + clicked() + DeregisterForm + accept() - cancelPushButton - clicked() - DeregisterForm - reject() + cancelPushButton + clicked() + DeregisterForm + reject() - - - deregisterform.ui.h - - - - + + diff --git a/src/gui/deregisterform.ui.h b/src/gui/deregisterform.ui.h deleted file mode 100644 index 2aae11c..0000000 --- a/src/gui/deregisterform.ui.h +++ /dev/null @@ -1,26 +0,0 @@ -/**************************************************************************** -** ui.h extension file, included from the uic-generated form implementation. -** -** If you wish to add, delete or rename functions or slots use -** Qt Designer which will update this file, preserving your code. Create an -** init() function in place of a constructor, and a destroy() function in -** place of a destructor. -*****************************************************************************/ -/* - Copyright (C) 2005-2009 Michel de Boer - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - diff --git a/src/gui/twinkle.pro b/src/gui/twinkle.pro index ba9b51b..78e8a8e 100644 --- a/src/gui/twinkle.pro +++ b/src/gui/twinkle.pro @@ -11,6 +11,7 @@ INCLUDEPATH += .. HEADERS += gui.h \ dtmfform.h \ + deregisterform.h \ historylistview.h \ freedesksystray.h \ twinklesystray.h \ @@ -28,6 +29,7 @@ HEADERS += gui.h \ SOURCES += main.cpp \ gui.cpp \ dtmfform.cpp \ + deregisterform.cpp \ historylistview.cpp \ freedesksystray.cpp \ twinklesystray.cpp \ @@ -38,12 +40,12 @@ SOURCES += main.cpp \ buddylistview.cpp \ twinkleapplication.cpp -FORMS = dtmfform.ui +FORMS = dtmfform.ui \ + deregisterform.ui #The following line was changed from FORMS to FORMS3 by qt3to4 FORMS3 = mphoneform.ui \ inviteform.ui \ - deregisterform.ui \ redirectform.ui \ termcapform.ui \ selectnicform.ui \ -- cgit v1.2.3