diff options
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/textedit.cpp b/textedit.cpp index 064fa94..5ad8976 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -53,6 +53,15 @@ void TextEdit::newTab() connect(page->getTextPage(), SIGNAL(modificationChanged(bool)), this, SLOT(showModified())); } +void TextEdit::newHelpTab(QString title, QString path) +{ + + HelpPage *page = new HelpPage(path); + tabWidget->addTab(page, title); + tabWidget->setCurrentIndex(tabWidget->count() - 1); + +} + void TextEdit::open() { QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open file"), |