diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2014-04-21 11:53:35 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2014-04-21 11:53:35 +0200 |
commit | 2a117cc570574099839da41a5ae9fbb2a5ca9e55 (patch) | |
tree | 6107da409f9c7f07c0ffa0869a26a161b097aea7 /src/favoriteeditor.cpp | |
parent | aa68b7bd585a157e8952881e87e2c09de6ec742f (diff) |
Imported Upstream version 14.3.0
Diffstat (limited to 'src/favoriteeditor.cpp')
-rw-r--r-- | src/favoriteeditor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/favoriteeditor.cpp b/src/favoriteeditor.cpp index 4ac222c..ef3f25f 100644 --- a/src/favoriteeditor.cpp +++ b/src/favoriteeditor.cpp @@ -1,5 +1,5 @@ /* smplayer, GUI front-end for mplayer. - Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net> + Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -94,7 +94,11 @@ FavoriteEditor::FavoriteEditor( QWidget* parent, Qt::WindowFlags f ) table->setHorizontalHeaderLabels(QStringList() << tr("Icon") << tr("Name") << tr("Media") ); table->setAlternatingRowColors(true); +#if QT_VERSION >= 0x050000 + table->horizontalHeader()->setSectionResizeMode(COL_FILE, QHeaderView::Stretch); +#else table->horizontalHeader()->setResizeMode(COL_FILE, QHeaderView::Stretch); +#endif table->setSelectionBehavior(QAbstractItemView::SelectRows); table->setSelectionMode(QAbstractItemView::ExtendedSelection); |