ui.
trackList->setViewMode
(QListView::IconMode);
ui.trackList->setViewMode(QListView::IconMode);
To copy to clipboard, switch view to plain text mode
TrackListDlg
::TrackListDlg(QStringList
& trackList_, QString
& srcDir_,
QWidget *parent
) m_trackList(trackList_),
m_srcDir(srcDir_)
{
ui.setupUi(this);
ui.trackList->setSortingEnabled( true );
ui.
trackList->setViewMode
(QListView::IconMode);
//<-- doesn't work ui.trackList->setStyleSheet("* { background-color:rgb(199,147,88); padding: 7px ; color:rgb(255,255,255)}");
for (int i = 0; i < m_trackList.size(); ++i)
{
ui.trackList->addItem(fi.fileName());
}
connect( ui.cancelBtn, SIGNAL( released() ), this, SLOT( slotCancel() ) );
connect( ui.addBtn, SIGNAL( released() ), this, SLOT( slotAdd() ) );
}
TrackListDlg::TrackListDlg(QStringList& trackList_, QString& srcDir_, QWidget *parent)
: QDialog(parent),
m_trackList(trackList_),
m_srcDir(srcDir_)
{
ui.setupUi(this);
ui.trackList->setSortingEnabled( true );
ui.trackList->setViewMode(QListView::IconMode); //<-- doesn't work
ui.trackList->setStyleSheet("* { background-color:rgb(199,147,88); padding: 7px ; color:rgb(255,255,255)}");
for (int i = 0; i < m_trackList.size(); ++i)
{
QFileInfo fi( m_trackList.at(i) );
ui.trackList->addItem(fi.fileName());
}
connect( ui.cancelBtn, SIGNAL( released() ), this, SLOT( slotCancel() ) );
connect( ui.addBtn, SIGNAL( released() ), this, SLOT( slotAdd() ) );
}
To copy to clipboard, switch view to plain text mode
Bookmarks