diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-03 00:55:43 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-03 00:55:43 +0000 |
commit | ec8edd90558a52457950913c3071a150c7f48dbd (patch) | |
tree | 078b05107896336179fd08da010599b5d642f740 /textedit.cpp | |
parent | added shortcuts Ctrl+Tab and Ctrl+Shift+Tab to switch through the tabs (diff) | |
download | gpg4usb-ec8edd90558a52457950913c3071a150c7f48dbd.tar.gz gpg4usb-ec8edd90558a52457950913c3071a150c7f48dbd.zip |
change undo/redo menu-order, show filename on tab when opening file from command line
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@425 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/textedit.cpp b/textedit.cpp index 16cbd84..bc1caf8 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -392,6 +392,8 @@ void TextEdit::loadFile(const QString &fileName) curTextPage()->setPlainText(in.readAll()); QApplication::restoreOverrideCursor(); curPage()->setFilePath(fileName); + tabWidget->setTabText(tabWidget->currentIndex(), strippedName(fileName)); + // statusBar()->showMessage(tr("File loaded"), 2000); } |