Commit d890a6a3 authored by Daniel Molkentin's avatar Daniel Molkentin

- indentation fixes

- use QString::number() to convert ints

svn path=/trunk/kdegraphics/kpdf/; revision=242833
parent c4e612d6
...@@ -49,10 +49,10 @@ Part::Part(QWidget *parentWidget, const char *widgetName, ...@@ -49,10 +49,10 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
// we need an instance // we need an instance
setInstance(KPDFPartFactory::instance()); setInstance(KPDFPartFactory::instance());
pdfpartview = new PDFPartView(parentWidget, widgetName); pdfpartview = new PDFPartView(parentWidget, widgetName);
connect(pdfpartview->pagesListBox, SIGNAL( clicked ( QListBoxItem * ) ), connect(pdfpartview->pagesListBox, SIGNAL( clicked ( QListBoxItem * ) ),
this, SLOT( pageClicked ( QListBoxItem * ) )); this, SLOT( pageClicked ( QListBoxItem * ) ));
m_outputDev = pdfpartview->outputdev; m_outputDev = pdfpartview->outputdev;
...@@ -128,19 +128,19 @@ Part::openFile() ...@@ -128,19 +128,19 @@ Part::openFile()
// just for fun, set the status bar // just for fun, set the status bar
// emit setStatusBarText( QString::number( m_doc->getNumPages() ) ); // emit setStatusBarText( QString::number( m_doc->getNumPages() ) );
// fill the listbox with entries for every page // fill the listbox with entries for every page
pdfpartview->pagesListBox->setUpdatesEnabled(false); pdfpartview->pagesListBox->setUpdatesEnabled(false);
pdfpartview->pagesListBox->clear(); pdfpartview->pagesListBox->clear();
for (int i = 1; i <= m_doc->getNumPages(); i++) for (int i = 1; i <= m_doc->getNumPages(); i++)
{ {
pdfpartview->pagesListBox->insertItem(QString("%1").arg(i)); pdfpartview->pagesListBox->insertItem(QString::number(i));
} }
pdfpartview->pagesListBox->setUpdatesEnabled(true); pdfpartview->pagesListBox->setUpdatesEnabled(true);
pdfpartview->pagesListBox->update(); pdfpartview->pagesListBox->update();
displayPage(1); displayPage(1);
m_outputDev->setPDFDocument(m_doc); m_outputDev->setPDFDocument(m_doc);
return true; return true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment