slightly improved the icon situation
This commit is contained in:
parent
ccd29c71d5
commit
8154aac7d8
BIN
src/qtgui/images/d_nextpage.png
Normal file
BIN
src/qtgui/images/d_nextpage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/qtgui/images/d_prevpage.png
Normal file
BIN
src/qtgui/images/d_prevpage.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.6 2006-01-23 13:32:06 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.7 2006-01-23 17:21:30 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -46,6 +46,7 @@ using std::pair;
|
|||||||
#include <qaction.h>
|
#include <qaction.h>
|
||||||
#include <qpushbutton.h>
|
#include <qpushbutton.h>
|
||||||
#include <qimage.h>
|
#include <qimage.h>
|
||||||
|
#include <qiconset.h>
|
||||||
|
|
||||||
#include "recoll.h"
|
#include "recoll.h"
|
||||||
#include "debuglog.h"
|
#include "debuglog.h"
|
||||||
@ -64,6 +65,16 @@ using std::pair;
|
|||||||
|
|
||||||
extern "C" int XFlush(void *);
|
extern "C" int XFlush(void *);
|
||||||
|
|
||||||
|
// Taken from qt designer. Don't know why it's needed.
|
||||||
|
static QIconSet createIconSet( const QString &name )
|
||||||
|
{
|
||||||
|
QIconSet ic( QPixmap::fromMimeSource( name ) );
|
||||||
|
QString iname = "d_" + name;
|
||||||
|
ic.setPixmap(QPixmap::fromMimeSource(iname),
|
||||||
|
QIconSet::Small, QIconSet::Disabled );
|
||||||
|
return ic;
|
||||||
|
}
|
||||||
|
|
||||||
void RclMain::init()
|
void RclMain::init()
|
||||||
{
|
{
|
||||||
curPreview = 0;
|
curPreview = 0;
|
||||||
@ -89,6 +100,9 @@ void RclMain::init()
|
|||||||
m_history = new RclDHistory(historyfile);
|
m_history = new RclDHistory(historyfile);
|
||||||
connect(sSearch, SIGNAL(startSearch(Rcl::AdvSearchData)),
|
connect(sSearch, SIGNAL(startSearch(Rcl::AdvSearchData)),
|
||||||
this, SLOT(startAdvSearch(Rcl::AdvSearchData)));
|
this, SLOT(startAdvSearch(Rcl::AdvSearchData)));
|
||||||
|
|
||||||
|
nextPageAction->setIconSet(createIconSet("nextpage.png"));
|
||||||
|
prevPageAction->setIconSet(createIconSet("prevpage.png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// We also want to get rid of the advanced search form and previews
|
// We also want to get rid of the advanced search form and previews
|
||||||
|
|||||||
@ -19,21 +19,13 @@ FORMS = reslistb.ui \
|
|||||||
uiprefs.ui \
|
uiprefs.ui \
|
||||||
ssearchb.ui
|
ssearchb.ui
|
||||||
|
|
||||||
IMAGES = images/filenew \
|
IMAGES = images/asearch.png \
|
||||||
images/fileopen \
|
images/history.png \
|
||||||
images/filesave \
|
images/d_nextpage.png \
|
||||||
images/print \
|
images/nextpage.png \
|
||||||
images/undo \
|
images/d_prevpage.png \
|
||||||
images/redo \
|
images/prevpage.png \
|
||||||
images/editcut \
|
images/sortparms.png
|
||||||
images/editcopy \
|
|
||||||
images/editpaste \
|
|
||||||
images/searchfind \
|
|
||||||
images/asearch \
|
|
||||||
images/history \
|
|
||||||
images/nextpage \
|
|
||||||
images/prevpage \
|
|
||||||
images/sortparms
|
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
UI_DIR = .ui
|
UI_DIR = .ui
|
||||||
|
|||||||
@ -212,7 +212,7 @@
|
|||||||
<cstring>toolsDoc_HistoryAction</cstring>
|
<cstring>toolsDoc_HistoryAction</cstring>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSet">
|
<property name="iconSet">
|
||||||
<iconset>history</iconset>
|
<iconset>history.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Document &History</string>
|
<string>Document &History</string>
|
||||||
@ -229,7 +229,7 @@
|
|||||||
<cstring>toolsAdvanced_SearchAction</cstring>
|
<cstring>toolsAdvanced_SearchAction</cstring>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSet">
|
<property name="iconSet">
|
||||||
<iconset>asearch</iconset>
|
<iconset>asearch.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Advanced Search</string>
|
<string>Advanced Search</string>
|
||||||
@ -246,7 +246,7 @@
|
|||||||
<cstring>toolsSort_parametersAction</cstring>
|
<cstring>toolsSort_parametersAction</cstring>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSet">
|
<property name="iconSet">
|
||||||
<iconset>sortparms</iconset>
|
<iconset>sortparms.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Sort parameters</string>
|
<string>&Sort parameters</string>
|
||||||
@ -266,7 +266,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSet">
|
<property name="iconSet">
|
||||||
<iconset>nextpage</iconset>
|
<iconset>nextpage.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Next page</string>
|
<string>Next page</string>
|
||||||
@ -283,7 +283,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSet">
|
<property name="iconSet">
|
||||||
<iconset>prevpage</iconset>
|
<iconset>prevpage.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Previous page</string>
|
<string>Previous page</string>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user