****************
fix width calculation to work on plastique, oxygen and windows styles, tahnks to boemman for the tipts
svn path=/branches/KDE/4.0/kdegraphics/okular/; revision=761053
m_pagesEdit->setMaximumWidth(fm.width(QString::number(m_document->pages()))+2*style()->pixelMetric(QStyle::PM_DefaultFrameWidth,&option,m_pagesEdit)+4);// the 4 comes from 2*horizontalMargin, horizontalMargin being a define in qlineedit.cpp