mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
width slider terminado...
This commit is contained in:
@ -48,6 +48,7 @@ HEADERS += comic.h \
|
||||
page_label_widget.h \
|
||||
goto_flow_toolbar.h \
|
||||
goto_flow_decorationbar.h \
|
||||
width_slider.h \
|
||||
../common/pictureflow.h \
|
||||
../common/custom_widgets.h \
|
||||
../common/check_new_version.h \
|
||||
@ -75,6 +76,7 @@ SOURCES += comic.cpp \
|
||||
page_label_widget.cpp \
|
||||
goto_flow_toolbar.cpp \
|
||||
goto_flow_decorationbar.cpp \
|
||||
width_slider.cpp \
|
||||
../common/pictureflow.cpp \
|
||||
../common/custom_widgets.cpp \
|
||||
../common/check_new_version.cpp \
|
||||
|
@ -51,7 +51,7 @@
|
||||
<file>../images/sliderGround.png</file>
|
||||
<file>../images/sliderSubPage.png</file>
|
||||
<file>../images/sliderAddPage.png</file>
|
||||
<file>../images/sliderHandle.png</file>
|
||||
<file>../images/sliderHandle.png</file>
|
||||
|
||||
<file>../images/helpImages/open.png</file>
|
||||
<file>../images/helpImages/openFolder.png</file>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "comic.h"
|
||||
#include "bookmarks_dialog.h"
|
||||
#include "shortcuts_dialog.h"
|
||||
|
||||
#include "width_slider.h"
|
||||
|
||||
MainWindowViewer::MainWindowViewer()
|
||||
:QMainWindow(),fullscreen(false),toolbars(true),alwaysOnTop(false),currentDirectory("."),currentDirectoryImgDest(".")
|
||||
@ -322,13 +322,17 @@ void MainWindowViewer::createToolBars()
|
||||
|
||||
//comicToolBar->addAction(adjustWidth);
|
||||
QMenu * menu = new QMenu();
|
||||
sliderAction = new YACReaderSliderAction(this);
|
||||
menu->setAutoFillBackground(false);
|
||||
menu->setStyleSheet(" QMenu {background:transparent; border: 0px;padding: 0px; }"
|
||||
);
|
||||
menu->addAction(new YACReaderSliderAction(this));
|
||||
menu->addAction(sliderAction);
|
||||
QToolButton * tb2 = new QToolButton();
|
||||
tb2->addAction(adjustWidth);
|
||||
tb2->setMenu(menu);
|
||||
|
||||
connect(sliderAction,SIGNAL(fitToWidthRatioChanged(float)),viewer,SLOT(updateFitToWidthRatio(float)));
|
||||
|
||||
//tb2->addAction();
|
||||
tb2->setPopupMode(QToolButton::MenuButtonPopup);
|
||||
tb2->setDefaultAction(adjustWidth);
|
||||
|
@ -15,7 +15,7 @@ class OptionsDialog;
|
||||
class HelpAboutDialog;
|
||||
class HttpVersionChecker;
|
||||
class ShortcutsDialog;
|
||||
|
||||
class YACReaderSliderAction;
|
||||
|
||||
class MainWindowViewer : public QMainWindow
|
||||
{
|
||||
@ -91,6 +91,7 @@ class ShortcutsDialog;
|
||||
QAction *showDictionaryAction;
|
||||
QAction *alwaysOnTopAction;
|
||||
QAction *adjustToFullSizeAction;
|
||||
YACReaderSliderAction * sliderAction;
|
||||
|
||||
HttpVersionChecker * versionChecker;
|
||||
QString previousComicPath;
|
||||
|
Reference in New Issue
Block a user