aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2013-10-11 00:08:31 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2013-10-11 00:08:31 +0000
commit78a63f1eedec71e1fb6a2f353eac33c474e81924 (patch)
tree393599de07b0a57c624d90c2e8954e18def4efec /textedit.cpp
parentadded QT_NO_DEBUG_OUTPUT and QT_NO_WARNING to gpg4usb.pro and set wizardstyle... (diff)
downloadgpg4usb-78a63f1eedec71e1fb6a2f353eac33c474e81924.tar.gz
gpg4usb-78a63f1eedec71e1fb6a2f353eac33c474e81924.zip
add qmlpage for keydetails, just a test now
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@1043 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 98d974f..e40a4af 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -20,6 +20,7 @@
*/
#include "textedit.h"
+#include "qmlpage.h"
TextEdit::TextEdit()
{
@@ -65,6 +66,12 @@ void TextEdit::slotNewHelpTab(QString title, QString path)
}
+void TextEdit::slotNewQMLTab(QString title, QString qmlfile) {
+ QMLPage *page = new QMLPage(qmlfile);
+ tabWidget->addTab(page, title);
+ tabWidget->setCurrentIndex(tabWidget->count() - 1);
+}
+
void TextEdit::slotOpen()
{
QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open file"),