less deprecated

svn path=/branches/work/kde4/playground/graphics/okular/; revision=546170
remotes/origin/old/work/newpageview
Pino Toscano 20 years ago
parent 507c365be8
commit fedf49f089
  1. 2
      generators/ghostview/generator_ghostview.cpp
  2. 2
      generators/ghostview/gvlogwindow.cpp
  3. 2
      generators/ghostview/internaldocument.cpp
  4. 6
      generators/ghostview/interpreter.h
  5. 10
      generators/ghostview/interpreter_cmd.cpp
  6. 2
      generators/ghostview/kpdflibgsasyncgenerator.cpp

@ -274,7 +274,7 @@ void GSGenerator::setupGUI(KActionCollection * ac , QToolBox * tBox )
}
m_actionCollection = ac;
m_paperSize = new KSelectAction (i18n( "Paper Size" ), "viewmag", ac, "papersize");
m_paperSize = new KSelectAction( KIcon("viewmag"), i18n( "Paper Size" ), ac, "papersize");
m_paperSize->setItems (GSInternalDocument::paperSizes());
connect( m_paperSize , SIGNAL( activated( const QString & ) ),
this , SLOT( slotPaperSize ( const QString & ) ) );

@ -61,7 +61,7 @@ void GSLogWindow::append( GSInterpreterLib::MessageType t, const QString &text)
{
//kDebug() << "Appending: " << text <<endl;
kDebug() << "last int: " << m_lastInt << endl;
QStringList l=QStringList::split("\n",text.stripWhiteSpace());
QStringList l=text.trimmed().split("\n",QString::SkipEmptyParts);
QStringList::Iterator it=l.begin(), end=l.end();
while (it!=end)
{

@ -48,7 +48,7 @@ void GSInternalDocument::scanDSC()
m_dsc->fixup();
}
GSInternalDocument::GSInternalDocument(QString fname, Format form) : m_format (form), m_fileName(fname), m_error(false)
GSInternalDocument::GSInternalDocument(QString fname, Format form) : m_error(false), m_fileName(fname), m_format (form)
{
m_internalFile = fopen(QFile::encodeName(fname),"r");
if( m_internalFile == 0 )

@ -1,12 +1,12 @@
#ifndef _KPDF_INTERPETER_H_
#define _KPDF_INTERPETER_H_
#include <qpaintdevice.h>
#include <qgs.h>
#include <QX11Info>
namespace DPIMod
{
const float X = QPaintDevice::x11AppDpiX()/72.0;
const float Y = QPaintDevice::x11AppDpiY()/72.0;
const float X = QX11Info::appDpiX()/72.0;
const float Y = QX11Info::appDpiY()/72.0;
}
#endif

@ -70,11 +70,11 @@ GSInterpreterCMD::GSInterpreterCMD( const QString & fileName ) :
m_process ( 0 ),
m_structurePending( false ),
m_magnify ( 1 ),
m_orientation ( CDSC_PORTRAIT ),
m_name ( fileName ),
m_aaGfx (1),
m_aaText (1),
m_pfonts (false)
m_aaGfx (1),
m_pfonts (false),
m_orientation ( CDSC_PORTRAIT ),
m_name ( fileName )
{
kDebug(4655) << "Constructing async interpreter!" << endl;
m_pixmap=0;
@ -202,7 +202,7 @@ bool GSInterpreterCMD::startInterpreter()
list << m_name
<< m_processData->names[0]
<< m_processData->names[1]
<< m_media.lower()
<< m_media.toLower()
<< QString::number ( m_magnify )
<< QString::number ( m_orientation )
<< QString::number ( m_width )

@ -54,7 +54,7 @@ void PixHandler::slotPixmap(const QImage* img)
(QX11Info::display(),
pix->handle(),
pData.handle,
kde_xget_temp_gc( pix->x11Screen(), false ),
kde_xget_temp_gc( pix->x11Info().screen(), false ),
0,
0,
pix->width(),

Loading…
Cancel
Save