|
|
|
@ -98,11 +98,14 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
_find->hide(); |
|
|
|
|
statusBar()->addPermanentWidget(_progress = new QProgressBar()); |
|
|
|
|
_progress -> setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); |
|
|
|
|
QPushButton* btn(0); |
|
|
|
|
statusBar()->addPermanentWidget |
|
|
|
|
(new QLabel("<img src=\":/icons/16x16/butt16_09.png\"/>")); |
|
|
|
|
(btn=new QPushButton(QIcon(":/icons/16x16/butt16_09.png"), "")); |
|
|
|
|
assert(connect(btn, SIGNAL(clicked(bool)), SLOT(smaller()))); |
|
|
|
|
statusBar()->addPermanentWidget(_zoom = new QSlider(Qt::Horizontal)); |
|
|
|
|
statusBar()->addPermanentWidget |
|
|
|
|
(new QLabel("<img src=\":/icons/16x16/butt16_10.png\"/>")); |
|
|
|
|
(btn=new QPushButton(QIcon(":/icons/16x16/butt16_10.png"), "")); |
|
|
|
|
assert(connect(btn, SIGNAL(clicked(bool)), SLOT(larger()))); |
|
|
|
|
_zoom->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); |
|
|
|
|
_zoom->setMinimum(10); |
|
|
|
|
_zoom->setMaximum(190); |
|
|
|
@ -610,6 +613,14 @@ class Browser: public QMainWindow, protected Ui::Browser { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void smaller() { |
|
|
|
|
_zoom->setValue(_zoom->value()-_zoom->pageStep()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void larger() { |
|
|
|
|
_zoom->setValue(_zoom->value()+_zoom->pageStep()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void zoom(int i) { |
|
|
|
|
LOG<<i; |
|
|
|
|
statusBar()->showMessage(tr("Zoom: %1%").arg(i)); |
|
|
|
|