mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-19 07:51:27 +00:00
some BarIcon() => UserIcon()
svn path=/trunk/kdegraphics/kdvi/; revision=44819
This commit is contained in:
parent
cd6943dbb0
commit
9b2bf9ee0c
9
kdvi.cpp
9
kdvi.cpp
|
@ -232,6 +232,8 @@ void kdvi::makeButtons()
|
|||
|
||||
#define I(f,o,s,h) toolBar()->insertButton( BarIcon(f),\
|
||||
0, SIGNAL(clicked()), o, SLOT(s()), TRUE, h);
|
||||
#define U(f,o,s,h) toolBar()->insertButton( UserIcon(f),\
|
||||
0, SIGNAL(clicked()), o, SLOT(s()), TRUE, h);
|
||||
|
||||
I( "fileopen", this, fileOpen, i18n("Open document ...") )
|
||||
I( "reload", dviwin, drawPage, i18n("Reload document") )
|
||||
|
@ -239,15 +241,16 @@ void kdvi::makeButtons()
|
|||
toolBar()->insertSeparator();
|
||||
I( "start", dviwin, firstPage, i18n("Go to first page") )
|
||||
I( "back", dviwin, prevPage, i18n("Go to previous page") )
|
||||
I( "forwpage", dviwin, goForward, i18n("Go down then top of next page") )
|
||||
U( "forwpage", dviwin, goForward, i18n("Go down then top of next page") )
|
||||
I( "forward", dviwin, nextPage, i18n("Go to next page") )
|
||||
I( "finish", dviwin, lastPage, i18n("Go to last page") )
|
||||
toolBar()->insertSeparator();
|
||||
I( "viewmag-", dviwin, nextShrink, i18n("Decrease magnification") )
|
||||
I( "smalltext", this, selectSmall, i18n("Small text") )
|
||||
I( "largetext", this, selectLarge, i18n("Large text") )
|
||||
U( "smalltext", this, selectSmall, i18n("Small text") )
|
||||
U( "largetext", this, selectLarge, i18n("Large text") )
|
||||
I( "viewmag+", dviwin, prevShrink, i18n("Increase magnification") )
|
||||
#undef I
|
||||
#undef U
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ KDVIPart::KDVIPart( QWidget *parent, const char *name )
|
|||
QIconSet(BarIcon("back", KDVIFactory::instance())) ,
|
||||
0, dviwin, SLOT(prevPage() ), actionCollection(), "prevPage");
|
||||
forPageAct = new KAction(i18n("Go down then top of next page"),
|
||||
QIconSet(BarIcon("forwpage", KDVIFactory::instance())) ,
|
||||
QIconSet(UserIcon("forwpage", KDVIFactory::instance())) ,
|
||||
0, dviwin, SLOT(goForward() ), actionCollection(), "goForward");
|
||||
forwardAct = new KAction(i18n("Go to next page"),
|
||||
QIconSet(BarIcon("forward", KDVIFactory::instance())) ,
|
||||
|
@ -75,10 +75,10 @@ KDVIPart::KDVIPart( QWidget *parent, const char *name )
|
|||
QIconSet(BarIcon("viewmag-", KDVIFactory::instance())) ,
|
||||
0, dviwin, SLOT(nextShrink() ), actionCollection(), "nextShrink");
|
||||
smallAct = new KAction(i18n("Small text"),
|
||||
QIconSet(BarIcon("smalltext", KDVIFactory::instance())) ,
|
||||
QIconSet(UserIcon("smalltext", KDVIFactory::instance())) ,
|
||||
0, w, SLOT(selectSmall() ), actionCollection(), "selectSmall");
|
||||
largeAct = new KAction(i18n("Large text"),
|
||||
QIconSet(BarIcon("largetext", KDVIFactory::instance())) ,
|
||||
QIconSet(UserIcon("largetext", KDVIFactory::instance())) ,
|
||||
0, w, SLOT(selectLarge() ), actionCollection(), "selectLarge");
|
||||
zoomInAct = new KAction(i18n("Increase magnification"),
|
||||
QIconSet(BarIcon("viewmag+", KDVIFactory::instance())) ,
|
||||
|
|
Loading…
Reference in a new issue