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

List:       kde-commits
Subject:    KDE/kdegraphics/kviewshell/plugins/pdf
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2006-09-03 10:21:46
Message-ID: 1157278906.563655.13660.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 580343 by bhards:

Move away from the Qt3Support methods.


 M  +4 -4      pdfRenderer.cpp  


--- trunk/KDE/kdegraphics/kviewshell/plugins/pdf/pdfRenderer.cpp #580342:580343
@@ -952,8 +952,8 @@
 {
   QString out;
 
-  for(quint32 i=0; i < in.length(); i++) {
-    QChar c = in[i];
+  for(int i=0; i < in.length(); i++) {
+    const QChar c = in[i];
     if (!c.isPrint() || (c.toLatin1() < 33) || (c.toLatin1() > 126))
       out += "&#" + QString::number( c.toLatin1() ) + ";";
     else
@@ -987,7 +987,7 @@
   infoWdg.m_author->setCursorPosition(0);
   infoWdg.m_keywords->setText( document->info("Keywords") );
   infoWdg.m_keywords->setCursorPosition(0,0);
-  infoWdg.m_path->setText( fi.dirPath(true) );
+  infoWdg.m_path->setText( fi.absoluteFilePath() );
   infoWdg.m_size->setText( KIO::convertSize(fi.size()) );
   infoWdg.m_modified->setText( KGlobal::locale()->formatDateTime(fi.lastModified()) \
);  infoWdg.m_pages->setText( QString("%1").arg(numPages) );
@@ -1049,7 +1049,7 @@
           << QString("InfoValue: ") << toPDFTKencoding(infoWdg.m_author->text()) << \
endl;  if (infoWdg.m_keywords->isModified())
       *str << QString("InfoKey: Keywords") << endl
-          << QString("InfoValue: ") << \
toPDFTKencoding(infoWdg.m_keywords->text().simplifyWhiteSpace()) << endl; +          \
<< QString("InfoValue: ") << toPDFTKencoding(infoWdg.m_keywords->text().simplified()) \
<< endl;  new_info.close();
 
     KTempFile new_wcopy(QString::null,".pdf");


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

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