[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/kate/app
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2006-09-02 19:47:27
Message-ID: 1157226447.162375.11474.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 580171 by dhaumann:
add "[*]" to the Document menu in Kate when the document is modified.
BUG: 107608
M +4 -3 katemainwindow.cpp
--- trunk/KDE/kdebase/kate/app/katemainwindow.cpp #580170:580171
@@ -526,9 +526,10 @@
while( item ) {
KTextEditor::Document *doc = ((KateFileListItem *)item)->document();
// would it be saner to use the screen width as a limit that some random number??
- QAction *action = new QAction(
- KStringHandler::rsqueeze(doc->documentName(), 150),
- documentsGroup );
+ const QString name = KStringHandler::rsqueeze(doc->documentName(), 150);
+ QAction *action = new QAction(doc->isModified() ?
+ i18nc("'document name [*]', [*] means modified", "%1 [*]", name) : name,
+ documentsGroup );
action->setCheckable(true);
if(m_viewManager->activeView() && doc == m_viewManager->activeView()->document())
action->setChecked(true);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic