1fdaf165cc
Bump PKGREVISION.
31 lines
1 KiB
Text
31 lines
1 KiB
Text
$NetBSD: patch-ad,v 1.1 2004/07/31 22:30:12 markd Exp $
|
|
|
|
--- src/StyleWid.ui.h.orig 2004-06-01 23:15:58.000000000 +1200
|
|
+++ src/StyleWid.ui.h
|
|
@@ -35,7 +35,7 @@ void StyleWid::init()
|
|
//load default picture
|
|
QPixmap pix;
|
|
QImage img;
|
|
- QString path = "/usr/share/kphotools/styles/nopreview.png";
|
|
+ QString path = "@kphotoolsdir@/styles/nopreview.png";
|
|
if(!img.load(path))
|
|
{
|
|
//return
|
|
@@ -46,7 +46,7 @@ void StyleWid::init()
|
|
m_imgPreview->setPixmap(pix);
|
|
|
|
//create style list
|
|
- QDir *dir = new QDir("/usr/share/kphotools/styles");
|
|
+ QDir *dir = new QDir("@kphotoolsdir@/styles");
|
|
const QFileInfoList * files = dir->entryInfoList();
|
|
if ( files ) {
|
|
QFileInfoListIterator it( *files );
|
|
@@ -72,7 +72,7 @@ void StyleWid::onSelectStyle( int item )
|
|
QString style = m_cbStyle->text(m_cbStyle->currentItem());
|
|
QPixmap pix;
|
|
QImage img;
|
|
- QString path = "/usr/share/kphotools/styles/"+style+"/preview.png";
|
|
+ QString path = "@kphotoolsdir@/styles/"+style+"/preview.png";
|
|
if(!img.load(path)){}
|
|
pix.convertFromImage(img);
|
|
//show it
|