Fixed build system
This commit is contained in:
parent
dfb62a2174
commit
998125919d
6 changed files with 19 additions and 7 deletions
|
@ -37,10 +37,12 @@ PlaylistModel::PlaylistModel (QObject *parent, XClient *client, const QString &n
|
||||||
{
|
{
|
||||||
// m_columns.append ("#");
|
// m_columns.append ("#");
|
||||||
m_columns.append ("Artist");
|
m_columns.append ("Artist");
|
||||||
|
m_columns.append ("Album");
|
||||||
m_columns.append ("Title");
|
m_columns.append ("Title");
|
||||||
m_columns.append ("Duration");
|
m_columns.append ("Duration");
|
||||||
|
|
||||||
// m_colfallback.append ("");
|
// m_colfallback.append ("");
|
||||||
|
m_colfallback.append ("");
|
||||||
m_colfallback.append ("");
|
m_colfallback.append ("");
|
||||||
m_colfallback.append ("url");
|
m_colfallback.append ("url");
|
||||||
m_colfallback.append ("");
|
m_colfallback.append ("");
|
||||||
|
|
|
@ -53,9 +53,10 @@ def build(bld):
|
||||||
obj = bld.new_task_gen(features='qt4 cstaticlib cxx')
|
obj = bld.new_task_gen(features='qt4 cstaticlib cxx')
|
||||||
obj.target = 'backend_lib'
|
obj.target = 'backend_lib'
|
||||||
obj.install_path = 0 # Don't install
|
obj.install_path = 0 # Don't install
|
||||||
obj.includes = '.'
|
obj.includes = ['.', '/usr/include/QtGui', '/usr/include/QtCore', '/usr/include/xmms2']
|
||||||
obj.source = lib_source
|
obj.source = lib_source
|
||||||
obj.uselib = 'QTCORE QTGUI XMMS2-CLIENT-CPP'
|
obj.uselib = 'libQtCore libQtGui XMMS2-CLIENT-CPP'
|
||||||
obj.export_incdirs = '.'
|
obj.export_incdirs = '.'
|
||||||
|
print dir(obj)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ def build(bld):
|
||||||
obj = bld.new_task_gen(features='qt4 cstaticlib cxx')
|
obj = bld.new_task_gen(features='qt4 cstaticlib cxx')
|
||||||
obj.target = 'dir_iterator'
|
obj.target = 'dir_iterator'
|
||||||
obj.install_path = 0 # Don't install
|
obj.install_path = 0 # Don't install
|
||||||
obj.includes = '.'
|
obj.includes = ['.', '/usr/include/QtCore', '/usr/include/QtGui']
|
||||||
obj.source = sources
|
obj.source = sources
|
||||||
obj.uselib = 'QTCORE QTGUI LIBARCHIVE'
|
obj.uselib = 'QTCORE QTGUI LIBARCHIVE'
|
||||||
obj.export_incdirs = '.'
|
obj.export_incdirs = '.'
|
||||||
|
|
|
@ -70,7 +70,7 @@ PlaylistDelegate::paint( QPainter *painter, const QStyleOptionViewItem& option,
|
||||||
QRect r = option.rect;
|
QRect r = option.rect;
|
||||||
QString s;
|
QString s;
|
||||||
// Get playtime and if it exists, draw it
|
// Get playtime and if it exists, draw it
|
||||||
m = index.sibling (index.row (), 2);
|
m = index.sibling (index.row (), 3);
|
||||||
tmp = m.data ();
|
tmp = m.data ();
|
||||||
if (tmp.isValid ()) {
|
if (tmp.isValid ()) {
|
||||||
int seconds = tmp.toInt () / 1000;
|
int seconds = tmp.toInt () / 1000;
|
||||||
|
@ -88,6 +88,11 @@ PlaylistDelegate::paint( QPainter *painter, const QStyleOptionViewItem& option,
|
||||||
s.append (tmp.toString ()).append (" - ");
|
s.append (tmp.toString ()).append (" - ");
|
||||||
m = index.sibling (index.row (), 1);
|
m = index.sibling (index.row (), 1);
|
||||||
tmp = m.data ();
|
tmp = m.data ();
|
||||||
|
if (tmp.isValid ())
|
||||||
|
s.append (tmp.toString ().append (" - "));
|
||||||
|
|
||||||
|
m = index.sibling (index.row (), 2);
|
||||||
|
tmp = m.data ();
|
||||||
if (tmp.isValid ())
|
if (tmp.isValid ())
|
||||||
s.append (tmp.toString ());
|
s.append (tmp.toString ());
|
||||||
s = option.fontMetrics.elidedText(s, Qt::ElideRight, r.width());
|
s = option.fontMetrics.elidedText(s, Qt::ElideRight, r.width());
|
||||||
|
|
10
src/wscript
10
src/wscript
|
@ -60,8 +60,8 @@ def files_subdirs(subdirs, filters = ['.cpp', '.ui'], basedir='.'):
|
||||||
for dir in subdirs:
|
for dir in subdirs:
|
||||||
d = os.path.join(basedir, dir)
|
d = os.path.join(basedir, dir)
|
||||||
for file in os.listdir(d):
|
for file in os.listdir(d):
|
||||||
for filter in filters:
|
for filt in filters:
|
||||||
if file.endswith(filter):
|
if file.endswith(filt):
|
||||||
ret.append(os.path.join(dir, file))
|
ret.append(os.path.join(dir, file))
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
@ -92,6 +92,10 @@ def build(bld):
|
||||||
|
|
||||||
incdirs = bld_subdirs
|
incdirs = bld_subdirs
|
||||||
incdirs.append('.')
|
incdirs.append('.')
|
||||||
|
incdirs.append('/usr/include/QtCore')
|
||||||
|
incdirs.append('/usr/include/QtGui')
|
||||||
|
incdirs.append('/usr/include/QtNetwork')
|
||||||
|
incdirs.append('/usr/include/xmms2')
|
||||||
|
|
||||||
obj = bld.new_task_gen(features='qt4 cprogram cxx')
|
obj = bld.new_task_gen(features='qt4 cprogram cxx')
|
||||||
obj.target = 'promoe'
|
obj.target = 'promoe'
|
||||||
|
@ -99,6 +103,6 @@ def build(bld):
|
||||||
obj.source = sources
|
obj.source = sources
|
||||||
obj.uselib_local = 'backend_lib dir_iterator'
|
obj.uselib_local = 'backend_lib dir_iterator'
|
||||||
obj.add_objects = 'promoe_data'
|
obj.add_objects = 'promoe_data'
|
||||||
obj.uselib = 'QTCORE QTGUI AVAHI-CLIENT AVAHI-QT4'
|
obj.uselib = 'QtCore QtGui AVAHI-CLIENT AVAHI-QT4'
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
BIN
waf
vendored
BIN
waf
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue