[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/gwenview
From:       Aurélien Gâteau <aurelien.gateau () free ! fr>
Date:       2006-10-17 10:32:21
Message-ID: 1161081141.195891.32632.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 596385 by gateau:

Do not show the name of the current file in the status bar: it's already shown
in the title bar and it was causing the mainwindow to be enlarged if the name
was very long.
BUG: 127004


 M  +3 -0      NEWS  
 M  +5 -6      app/mainwindow.cpp  


--- trunk/extragear/graphics/gwenview/NEWS #596384:596385
@@ -4,6 +4,9 @@
    129890)
  - Load JPEG rotated images using the right rotation directly instead of
    loading them first and rotate them after (Bug 117173)
+ - Do not show the name of the current file in the status bar: it's already
+   shown in the title bar and it was causing the mainwindow to be enlarged if
+   the name was very long (Bug 127004)
 
 2006.09.16 - v1.4.0
 - Fixes:
--- trunk/extragear/graphics/gwenview/app/mainwindow.cpp #596384:596385
@@ -785,27 +785,26 @@
 //
 //-----------------------------------------------------------------------
 void MainWindow::updateStatusInfo() {
-	QString txt;
+	QStringList tokens;
 
 	if ( KProtocolInfo::supportsListing(mFileViewController->url()) ) {
 		int pos = mFileViewController->shownFilePosition();
 		uint count = mFileViewController->fileCount();
 		if (count > 0) {
-			txt = i18n("%1/%2 - ").arg(pos+1).arg(count);
+			tokens << i18n("%1/%2").arg(pos+1).arg(count);
 		} else {
-			txt = i18n("No images");
+			tokens << i18n("No images");
 		}
 	}
 
 	QString filename = mDocument->filename();
-	txt += filename;
 
 	QSize size = mDocument->image().size();
 	if (!size.isEmpty()) {
-		txt += QString(" %1x%2").arg(size.width()).arg(size.height());
+		tokens << i18n("%1 x %2 pixels").arg(size.width()).arg(size.height());
 	}
 	
-	mSBDetailLabel->setText(txt);
+	mSBDetailLabel->setText(tokens.join(" - "));
 	setCaption(filename);
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic