diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-04 12:43:58 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-04 12:43:58 +0000 |
commit | 9942ea51dfbf0d1e86dbda35e4cfc02e561b54f6 (patch) | |
tree | 19152a1e9f3c41380bf58d0a5858fa28481186ab | |
parent | added import from old gpg4usb to wizard (beautifying has to be done) (diff) | |
download | gpg4usb-9942ea51dfbf0d1e86dbda35e4cfc02e561b54f6.tar.gz gpg4usb-9942ea51dfbf0d1e86dbda35e4cfc02e561b54f6.zip |
changed qplaintextedit to qtextedit
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@652 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | editorpage.cpp | 4 | ||||
-rw-r--r-- | editorpage.h | 6 | ||||
-rw-r--r-- | mainwindow.cpp | 2 | ||||
-rw-r--r-- | mainwindow.h | 4 | ||||
-rw-r--r-- | textedit.cpp | 2 | ||||
-rw-r--r-- | textedit.h | 4 | ||||
-rw-r--r-- | verifydetailsdialog.cpp | 2 | ||||
-rw-r--r-- | verifydetailsdialog.h | 4 | ||||
-rw-r--r-- | verifynotification.cpp | 2 | ||||
-rw-r--r-- | verifynotification.h | 4 |
10 files changed, 17 insertions, 17 deletions
diff --git a/editorpage.cpp b/editorpage.cpp index c89ba4a..c28059d 100644 --- a/editorpage.cpp +++ b/editorpage.cpp @@ -24,7 +24,7 @@ EditorPage::EditorPage(const QString &filePath, QWidget *parent) : QWidget(parent), fullFilePath(filePath) { - textPage = new QPlainTextEdit(); + textPage = new QTextEdit(); mainLayout = new QVBoxLayout(); mainLayout->setSpacing(0); mainLayout->addWidget(textPage); @@ -39,7 +39,7 @@ const QString& EditorPage::getFilePath() const return fullFilePath; } -QPlainTextEdit* EditorPage::getTextPage() +QTextEdit* EditorPage::getTextPage() { return textPage; } diff --git a/editorpage.h b/editorpage.h index a88ef89..ef8928f 100644 --- a/editorpage.h +++ b/editorpage.h @@ -22,7 +22,7 @@ #ifndef __EDITORPAGE_H__ #define __EDITORPAGE_H__ -#include <QPlainTextEdit> +#include <QTextEdit> #include <QtGui> QT_BEGIN_NAMESPACE @@ -64,7 +64,7 @@ public: /** * @details Return pointer tp the textedit of the currently activated tab. */ - QPlainTextEdit *getTextPage(); + QTextEdit *getTextPage(); /** * @details Show additional widget at buttom of currently active tab @@ -82,7 +82,7 @@ public: void closeNoteByClass(const char *className); private: - QPlainTextEdit *textPage; /** The textedit of the tab */ + QTextEdit *textPage; /** The textedit of the tab */ QVBoxLayout *mainLayout; /** The layout for the tab */ QHBoxLayout *notificationWidgetLayout; /** layout for the notification-widget */ QWidget *notificationWidget; /** The notification widget shown at the buttom of the tab */ diff --git a/mainwindow.cpp b/mainwindow.cpp index 95b43db..2a0fba4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -805,7 +805,7 @@ void MainWindow::appendSelectedKeys() QByteArray *keyArray = new QByteArray(); mCtx->exportKeys(mKeyList->getSelected(), keyArray); - edit->curTextPage()->appendPlainText(*keyArray); + edit->curTextPage()->append(*keyArray); } void MainWindow::copyMailAddressToClipboard() diff --git a/mainwindow.h b/mainwindow.h index c90147f..2dbd48c 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -32,7 +32,7 @@ QT_BEGIN_NAMESPACE class QMainWindow; -class QPlainTextEdit; +class QTextEdit; class QWidget; class QVBoxLayout; class QGridLayout; @@ -46,7 +46,7 @@ class QMessageBox; class QVBoxLayout; class QAction; class QMenu; -class QPlainTextEdit; +class QTextEdit; class QComboBox; class QPushButton; class QRadioButton; diff --git a/textedit.cpp b/textedit.cpp index b60c28d..064fa94 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -297,7 +297,7 @@ bool TextEdit::maybeSaveAnyTab() } -QPlainTextEdit* TextEdit::curTextPage() +QTextEdit* TextEdit::curTextPage() { EditorPage *curTextPage = qobject_cast<EditorPage *>(tabWidget->currentWidget()); return curTextPage->getTextPage(); @@ -33,7 +33,7 @@ class QMessageBox; class QFileInfo; class QApplication; class QFile; -class QPlainTextEdit; +class QTextEdit; class QFileDialog; class QMessageBox; class QWidget; @@ -77,7 +77,7 @@ public: /** * @details textpage of the currently activated tab */ - QPlainTextEdit* curTextPage(); + QTextEdit* curTextPage(); /** * @details List of currently unsaved tabs. diff --git a/verifydetailsdialog.cpp b/verifydetailsdialog.cpp index 8f160fb..58eefcd 100644 --- a/verifydetailsdialog.cpp +++ b/verifydetailsdialog.cpp @@ -21,7 +21,7 @@ #include "verifydetailsdialog.h" -VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext* ctx, KeyList* keyList, QPlainTextEdit *edit) : +VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext* ctx, KeyList* keyList, QTextEdit *edit) : QDialog(parent) { mCtx = ctx; diff --git a/verifydetailsdialog.h b/verifydetailsdialog.h index 83519f9..f857b67 100644 --- a/verifydetailsdialog.h +++ b/verifydetailsdialog.h @@ -30,7 +30,7 @@ class VerifyDetailsDialog : public QDialog { Q_OBJECT public: - explicit VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext* ctx, KeyList* mKeyList, QPlainTextEdit *edit); + explicit VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext* ctx, KeyList* mKeyList, QTextEdit *edit); private slots: void refresh(); @@ -41,7 +41,7 @@ private: QHBoxLayout *mainLayout; QVBoxLayout *mVboxLayout; QWidget *mVbox; - QPlainTextEdit *mTextpage; /** Textedit associated to the notification */ + QTextEdit *mTextpage; /** Textedit associated to the notification */ QDialogButtonBox* buttonBox; }; diff --git a/verifynotification.cpp b/verifynotification.cpp index d588007..a3897b2 100644 --- a/verifynotification.cpp +++ b/verifynotification.cpp @@ -21,7 +21,7 @@ #include "verifynotification.h" -VerifyNotification::VerifyNotification(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList,QPlainTextEdit *edit) : +VerifyNotification::VerifyNotification(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList,QTextEdit *edit) : QWidget(parent) { mCtx = ctx; diff --git a/verifynotification.h b/verifynotification.h index 7da445b..29da1c6 100644 --- a/verifynotification.h +++ b/verifynotification.h @@ -58,7 +58,7 @@ public: * @param ctx The GPGme-Context * @param parent The parent widget */ - explicit VerifyNotification(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList,QPlainTextEdit *edit); + explicit VerifyNotification(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList,QTextEdit *edit); /** * @details Set the text and background-color of verify notification. * @@ -101,7 +101,7 @@ private: QLabel *verifyLabel; /** Label holding the text shown in verifyNotification */ GpgME::GpgContext *mCtx; /** GpgME Context */ KeyList *mKeyList; /** Table holding the keys */ - QPlainTextEdit *mTextpage; /** Textedit associated to the notification */ + QTextEdit *mTextpage; /** Textedit associated to the notification */ QHBoxLayout *notificationWidgetLayout; /** Layout for verify-notification */ QVector<QString> verifyDetailStringVector; /** Vector containing the text for labels in verifydetaildialog */ QVector<verify_label_status> verifyDetailStatusVector; /** Vector containing the status for labels in verifydetaildialog */ |