diff options
author | Arno <am@disconnect.de> | 2010-11-26 15:43:06 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-11-26 15:43:06 +0100 |
commit | 0f3f7598e4a3ee58c330cc7424cf89ea3e692da0 (patch) | |
tree | c78ad6206707499b0716a1e3de9b32b57eaa76cf | |
parent | f4a99fc9a5bac76c6bfd10212a80d5ece3b41aac (diff) | |
download | SheMov-0f3f7598e4a3ee58c330cc7424cf89ea3e692da0.tar.gz SheMov-0f3f7598e4a3ee58c330cc7424cf89ea3e692da0.tar.bz2 SheMov-0f3f7598e4a3ee58c330cc7424cf89ea3e692da0.zip |
Removed obsolete class files
class TextEnterDialog was removed some time ago, maybe with
commitd617e06. Remove files also.
-rw-r--r-- | shemov.pro | 2 | ||||
-rw-r--r-- | textenterdialog.cpp | 38 | ||||
-rw-r--r-- | textenterdialog.h | 33 |
3 files changed, 0 insertions, 73 deletions
@@ -16,7 +16,6 @@ SOURCES = main.cpp \ shemoviconprovider.cpp \ messagedialog.cpp \ configurationdialog.cpp \ - textenterdialog.cpp \ statisticsdialog.cpp \ programconfigurator.cpp \ pictureviewer.cpp \ @@ -45,7 +44,6 @@ HEADERS = listitem.h \ shemoviconprovider.h \ messagedialog.h \ configurationdialog.h \ - textenterdialog.h \ statisticsdialog.h \ programconfigurator.h \ pictureviewer.h \ diff --git a/textenterdialog.cpp b/textenterdialog.cpp deleted file mode 100644 index dae7a48..0000000 --- a/textenterdialog.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* - 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. -*/ - -#include <QHBoxLayout> -#include <QVBoxLayout> -#include <QPushButton> -#include <QLabel> -#include <QApplication> - -#include "textenterdialog.h" - -TextEnterDialog::TextEnterDialog(const QString &text, QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f){ - QVBoxLayout *mainLayout = new QVBoxLayout; - QLabel *l1 = new QLabel(text); - mainLayout->addWidget(l1); - mText = new QLineEdit; - mainLayout->addWidget(mText); - - QHBoxLayout *buttonLayout = new QHBoxLayout; - mOk = new QPushButton(tr("Ok")); - connect(mOk, SIGNAL(clicked()), this, SLOT(accept())); - buttonLayout->addStretch(); - buttonLayout->addWidget(mOk); - mClose = new QPushButton(tr("Close")); - connect(mClose, SIGNAL(clicked()), this, SLOT(reject())); - buttonLayout->addWidget(mClose); - - mainLayout->addLayout(buttonLayout); - - QString title = QString(tr("%1 - Enter text")).arg(qApp->applicationName()); - setWindowTitle(title); - - setLayout(mainLayout); -} diff --git a/textenterdialog.h b/textenterdialog.h deleted file mode 100644 index 0f49199..0000000 --- a/textenterdialog.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - 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. -*/ - -#ifndef TEXTENTERDIALOG_H -#define TEXTENTERDIALOG_H - -#include <QDialog> -#include <QLineEdit> - -class QLineEdit; -class QPushButton; -class QString; - -class TextEnterDialog : public QDialog { - Q_OBJECT - public: - TextEnterDialog(const QString &text, QWidget *parent = 0, Qt::WindowFlags f = 0); - ~TextEnterDialog() {}; - const QString text() const { return mText->text(); }; - void setText(const QString &text) { mText->setText(text); }; - - private: - QPushButton *mOk; - QPushButton *mClose; - QLineEdit *mText; -}; - -#endif - |