From ec8edd90558a52457950913c3071a150c7f48dbd Mon Sep 17 00:00:00 2001 From: ubbo Date: Mon, 3 Jan 2011 00:55:43 +0000 Subject: 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 --- textedit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'textedit.cpp') 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); } -- cgit v1.2.3