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
|
||||
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
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -46,6 +46,7 @@ using std::pair;
|
||||
#include <qaction.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qimage.h>
|
||||
#include <qiconset.h>
|
||||
|
||||
#include "recoll.h"
|
||||
#include "debuglog.h"
|
||||
@ -64,6 +65,16 @@ using std::pair;
|
||||
|
||||
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()
|
||||
{
|
||||
curPreview = 0;
|
||||
@ -89,6 +100,9 @@ void RclMain::init()
|
||||
m_history = new RclDHistory(historyfile);
|
||||
connect(sSearch, SIGNAL(startSearch(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
|
||||
|
||||
@ -19,21 +19,13 @@ FORMS = reslistb.ui \
|
||||
uiprefs.ui \
|
||||
ssearchb.ui
|
||||
|
||||
IMAGES = images/filenew \
|
||||
images/fileopen \
|
||||
images/filesave \
|
||||
images/print \
|
||||
images/undo \
|
||||
images/redo \
|
||||
images/editcut \
|
||||
images/editcopy \
|
||||
images/editpaste \
|
||||
images/searchfind \
|
||||
images/asearch \
|
||||
images/history \
|
||||
images/nextpage \
|
||||
images/prevpage \
|
||||
images/sortparms
|
||||
IMAGES = images/asearch.png \
|
||||
images/history.png \
|
||||
images/d_nextpage.png \
|
||||
images/nextpage.png \
|
||||
images/d_prevpage.png \
|
||||
images/prevpage.png \
|
||||
images/sortparms.png
|
||||
|
||||
unix {
|
||||
UI_DIR = .ui
|
||||
|
||||
@ -212,7 +212,7 @@
|
||||
<cstring>toolsDoc_HistoryAction</cstring>
|
||||
</property>
|
||||
<property name="iconSet">
|
||||
<iconset>history</iconset>
|
||||
<iconset>history.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Document &History</string>
|
||||
@ -229,7 +229,7 @@
|
||||
<cstring>toolsAdvanced_SearchAction</cstring>
|
||||
</property>
|
||||
<property name="iconSet">
|
||||
<iconset>asearch</iconset>
|
||||
<iconset>asearch.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Advanced Search</string>
|
||||
@ -246,7 +246,7 @@
|
||||
<cstring>toolsSort_parametersAction</cstring>
|
||||
</property>
|
||||
<property name="iconSet">
|
||||
<iconset>sortparms</iconset>
|
||||
<iconset>sortparms.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Sort parameters</string>
|
||||
@ -266,7 +266,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="iconSet">
|
||||
<iconset>nextpage</iconset>
|
||||
<iconset>nextpage.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Next page</string>
|
||||
@ -283,7 +283,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="iconSet">
|
||||
<iconset>prevpage</iconset>
|
||||
<iconset>prevpage.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Previous page</string>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user