doubleclicking slider sets 100% zoom
[presencevnc] / src / mainwindow.h
index 17b3299..f152f6a 100644 (file)
 #include <QtGui>
 
 class KeyMenu;
-
-//fix tearing during scrolling
-class ScrollArea : public QScrollArea {
-public:
-       ScrollArea(QWidget *parent) : QScrollArea(parent) { }
-protected:
-       virtual void scrollContentsBy(int dx, int dy)
-       {
-               QScrollArea::scrollContentsBy(dx, dy);
-               if(widget())
-                       widget()->update(); //update whole widget
-       }
-};
-
+class ScrollArea;
 
 class MainWindow : public QMainWindow {
        Q_OBJECT
@@ -57,12 +44,13 @@ public slots:
        void sendPgUp() { vnc_view->sendKey(Qt::Key_PageUp); }
        void sendPgDn() { vnc_view->sendKey(Qt::Key_PageDown); }
        void sendReturn() { vnc_view->sendKey(Qt::Key_Return); }
-    void setZoomLevel(int level);
+       void setZoomLevel(int level);
        void showInputPanel();
        void showKeyMenu();
        void showPreferences();
        void statusChanged(RemoteView::RemoteStatus status);
        void toggleFullscreen();
+       void zoomSliderReleased();
 protected:
        void closeEvent(QCloseEvent*);
        void resizeEvent(QResizeEvent *event);