Commit d57eeb59 authored by Laurent Montel's avatar Laurent Montel

Port some deprecated methods

parent 40d32ae9
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <QMimeDatabase> #include <QMimeDatabase>
#include <QMimeData> #include <QMimeData>
#include <QGestureEvent> #include <QGestureEvent>
#include <QElapsedTimer>
#include <qaction.h> #include <qaction.h>
#include <kactionmenu.h> #include <kactionmenu.h>
...@@ -164,7 +165,7 @@ public: ...@@ -164,7 +165,7 @@ public:
// viewport move // viewport move
bool viewportMoveActive; bool viewportMoveActive;
QTime viewportMoveTime; QElapsedTimer viewportMoveTime;
QPoint viewportMoveDest; QPoint viewportMoveDest;
int lastSourceLocationViewportPageNumber; int lastSourceLocationViewportPageNumber;
double lastSourceLocationViewportNormalizedX; double lastSourceLocationViewportNormalizedX;
......
...@@ -500,7 +500,7 @@ Sidebar::Sidebar( QWidget *parent ) ...@@ -500,7 +500,7 @@ Sidebar::Sidebar( QWidget *parent )
d->sideContainer->setMinimumWidth( 90 ); d->sideContainer->setMinimumWidth( 90 );
d->sideContainer->setMaximumWidth( 600 ); d->sideContainer->setMaximumWidth( 600 );
d->vlay = new QVBoxLayout( d->sideContainer ); d->vlay = new QVBoxLayout( d->sideContainer );
d->vlay->setMargin( 0 ); d->vlay->setContentsMargins( 0, 0, 0, 0 );
d->sideTitle = new QLabel( d->sideContainer ); d->sideTitle = new QLabel( d->sideContainer );
d->vlay->addWidget( d->sideTitle ); d->vlay->addWidget( d->sideTitle );
......
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