Игорь Пашев - Ещё поправки к DjView

Dec. 26th, 2010

12:27 pm - Ещё поправки к DjView

Previous Entry Add to Memories Tell A Friend Next Entry

Зум на 150% работал не правильно,
!!document — доставляет.

diff -urdb djview4-4.6/src/qdjview.cpp djview4-4.6.pin/src/qdjview.cpp
--- djview4-4.6/src/qdjview.cpp 2010-07-05 00:09:53.000000000 +0400
+++ djview4-4.6.pin/src/qdjview.cpp 2010-12-26 12:26:16.000000000 +0300
@@ -477,7 +477,7 @@
 
   actionZoom150 = makeAction(tr("150%", "Zoom|"), false)
     << tr("Magnify 150%")
-    << QVariant(200)
+    << QVariant(150)
     << Trigger(this, SLOT(performZoom()))
     << *zoomActionGroup;
 
@@ -911,7 +911,7 @@
   actionZoom100->setChecked(zoom == 100);
   actionZoom75->setChecked(zoom == 75);
   actionZoom50->setChecked(zoom == 50);
-  zoomCombo->setEnabled(!!document);
+  zoomCombo->setEnabled(document);
   int zoomIndex = zoomCombo->findData(QVariant(zoom));
   zoomCombo->clearEditText();
   zoomCombo->setCurrentIndex(zoomIndex);
@@ -930,7 +930,7 @@
   actionDisplayForeground->setChecked(mode == QDjVuWidget::DISPLAY_FG);
   actionDisplayHiddenText->setChecked(mode == QDjVuWidget::DISPLAY_TEXT);
   modeCombo->setCurrentIndex(modeCombo->findData(QVariant(mode)));
-  modeCombo->setEnabled(!!document);
+  modeCombo->setEnabled(document);
 
   // Rotations
   int rotation = widget->rotation();
</font

Tags: , , , ,
(Оставить комментарий)