GUI: add previous/next document buttons to the preview window

This commit is contained in:
Jean-Francois Dockes 2019-10-10 14:15:43 +02:00
parent 239297d3de
commit 9f1d482564
2 changed files with 52 additions and 2 deletions

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>611</width> <width>777</width>
<height>300</height> <height>432</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -102,6 +102,54 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="prevInTabPB">
<property name="text">
<string/>
</property>
<property name="toolTip">
<string>Previous result document</string>
</property>
<property name="icon">
<iconset>
<normaloff>:/images/prevpage.png</normaloff>images/prevpage.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="nextInTabPB">
<property name="text">
<string/>
</property>
<property name="toolTip">
<string>Next result document</string>
</property>
<property name="icon">
<iconset>
<normaloff>:/images/nextpage.png</normaloff>images/nextpage.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QPushButton" name="editPB"> <widget class="QPushButton" name="editPB">
<property name="text"> <property name="text">

View File

@ -144,8 +144,10 @@ void Preview::init()
this, SLOT (close())); this, SLOT (close()));
connect(new QShortcut(nextDocInTabKS, this), SIGNAL (activated()), connect(new QShortcut(nextDocInTabKS, this), SIGNAL (activated()),
this, SLOT (emitShowNext())); this, SLOT (emitShowNext()));
connect(nextInTabPB, SIGNAL (clicked()), this, SLOT (emitShowNext()));
connect(new QShortcut(prevDocInTabKS, this), SIGNAL (activated()), connect(new QShortcut(prevDocInTabKS, this), SIGNAL (activated()),
this, SLOT (emitShowPrev())); this, SLOT (emitShowPrev()));
connect(prevInTabPB, SIGNAL (clicked()), this, SLOT (emitShowPrev()));
connect(new QShortcut(closeTabKS, this), SIGNAL (activated()), connect(new QShortcut(closeTabKS, this), SIGNAL (activated()),
this, SLOT (closeCurrentTab())); this, SLOT (closeCurrentTab()));
connect(new QShortcut(printTabKS, this), SIGNAL (activated()), connect(new QShortcut(printTabKS, this), SIGNAL (activated()),