summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancois Andriot <[email protected]>2013-07-24 13:41:17 -0500
committerTimothy Pearson <[email protected]>2013-07-24 13:41:17 -0500
commita102c3bb80e33dc9c27e1e75edb643a4c4161e7b (patch)
tree7e7786e8023bc1bf1d94b0eef5747ab2f15e038c /src
parent7a6d1b1ae2828661b051fec138c71b11da10a55e (diff)
downloadmplayerthumbs-a102c3bb80e33dc9c27e1e75edb643a4c4161e7b.tar.gz
mplayerthumbs-a102c3bb80e33dc9c27e1e75edb643a4c4161e7b.zip
Fix FTBFS
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am6
-rw-r--r--src/videopreview.cpp8
2 files changed, 8 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d0313b3..06d1a50 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,7 @@ SUBDIRS = . mplayerthumbsconfig
kde_module_LTLIBRARIES = videopreview.la
videopreview_la_SOURCES = videopreview.cpp mplayerthumbs.kcfgc
-videopreview_la_LDFLAGS = -avoid-version -module $(all_libraries) $(TDE_PLUGIN)
+videopreview_la_LDFLAGS = -avoid-version -module $(all_libraries) $(TDE_PLUGIN) $(LIB_QT)
protocoldir = $(kde_servicesdir)
@@ -14,9 +14,9 @@ messages: rc.cpp
$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/videopreview.pot
protocol_DATA = videopreview.desktop
-videopreview_la_LIBADD = $(LIB_TDECORE)
+videopreview_la_LIBADD = $(LIB_TDECORE) -ltdefx
videothumbnail_DATA = sprocket-small.png sprocket-medium.png sprocket-large.png
-videothumbnaildir = $(kde_datadir)/videothumbnail
+videothumbnaildir = $(kde_datadir)/videopreview
kde_kcfg_DATA = mplayerthumbs.kcfg
diff --git a/src/videopreview.cpp b/src/videopreview.cpp
index 6a9c2ad..831bdd0 100644
--- a/src/videopreview.cpp
+++ b/src/videopreview.cpp
@@ -39,6 +39,8 @@
#include <math.h>
#include <ntqfileinfo.h>
+#include <cstdlib>
+
#include "mplayerthumbs.h"
#include "config.h"
@@ -160,11 +162,11 @@ bool VideoPreview::create(const TQString &path, int width, int height, TQImage &
TQPixmap sprocket;
if (pix.height() < 60)
- sprocket = TQPixmap(locate( "data", "videothumbnail/sprocket-small.png" ));
+ sprocket = TQPixmap(locate( "data", "videopreview/sprocket-small.png" ));
else if (pix.height() < 90)
- sprocket = TQPixmap(locate( "data", "videothumbnail/sprocket-medium.png" ));
+ sprocket = TQPixmap(locate( "data", "videopreview/sprocket-medium.png" ));
else
- sprocket = TQPixmap(locate( "data", "videothumbnail/sprocket-large.png" ));
+ sprocket = TQPixmap(locate( "data", "videopreview/sprocket-large.png" ));
for (int y = 0; y < pix.height() + sprocket.height(); y += sprocket.height()) {
painter.drawPixmap( 0, y, sprocket );