- _sortFilter.setSourceModel(&_ircListModel);
- _sortFilter.setFilterCaseSensitivity(Qt::CaseInsensitive);
- _sortFilter.setFilterKeyColumn(-1);
-
- ui.setupUi(this);
- ui.channelListView->setSelectionBehavior(QAbstractItemView::SelectRows);
- ui.channelListView->setSelectionMode(QAbstractItemView::SingleSelection);
- ui.channelListView->setAlternatingRowColors(true);
- ui.channelListView->setTabKeyNavigation(false);
- ui.channelListView->setModel(&_sortFilter);
- ui.channelListView->setSortingEnabled(true);
- ui.channelListView->verticalHeader()->hide();
- ui.channelListView->horizontalHeader()->setStretchLastSection(true);
-
- ui.searchChannelsButton->setAutoDefault(false);
-
- connect(ui.advancedModeLabel, SIGNAL(clicked()), this, SLOT(toggleMode()));
- connect(ui.searchChannelsButton, SIGNAL(clicked()), this, SLOT(requestSearch()));
- connect(ui.channelNameLineEdit, SIGNAL(returnPressed()), this, SLOT(requestSearch()));
- connect(ui.filterLineEdit, SIGNAL(textChanged(QString)), &_sortFilter, SLOT(setFilterFixedString(QString)));
- connect(Client::ircListHelper(), SIGNAL(channelListReceived(const NetworkId &, const QStringList &, QList<IrcListHelper::ChannelDescription>)),
- this, SLOT(receiveChannelList(NetworkId , QStringList, QList<IrcListHelper::ChannelDescription>)));
- connect(Client::ircListHelper(), SIGNAL(finishedListReported(const NetworkId &)), this, SLOT(reportFinishedList()));
- connect(Client::ircListHelper(), SIGNAL(errorReported(const QString &)), this, SLOT(showError(const QString &)));
- connect(ui.channelListView, SIGNAL(activated(QModelIndex)), this, SLOT(joinChannel(QModelIndex)));
-
- setAdvancedMode(false);
- enableQuery(true);
- showFilterLine(false);
- showErrors(false);
+ _sortFilter.setSourceModel(&_ircListModel);
+ _sortFilter.setFilterCaseSensitivity(Qt::CaseInsensitive);
+ _sortFilter.setFilterKeyColumn(-1);
+
+ ui.setupUi(this);
+ ui.advancedModeLabel->setPixmap(BarIcon("edit-rename"));
+
+ ui.channelListView->setSelectionBehavior(QAbstractItemView::SelectRows);
+ ui.channelListView->setSelectionMode(QAbstractItemView::SingleSelection);
+ ui.channelListView->setAlternatingRowColors(true);
+ ui.channelListView->setTabKeyNavigation(false);
+ ui.channelListView->setModel(&_sortFilter);
+ ui.channelListView->setSortingEnabled(true);
+ ui.channelListView->verticalHeader()->hide();
+ ui.channelListView->horizontalHeader()->setStretchLastSection(true);
+
+ ui.searchChannelsButton->setAutoDefault(false);
+
+ setWindowIcon(Icon("format-list-unordered"));
+
+ connect(ui.advancedModeLabel, SIGNAL(clicked()), this, SLOT(toggleMode()));
+ connect(ui.searchChannelsButton, SIGNAL(clicked()), this, SLOT(requestSearch()));
+ connect(ui.channelNameLineEdit, SIGNAL(returnPressed()), this, SLOT(requestSearch()));
+ connect(ui.filterLineEdit, SIGNAL(textChanged(QString)), &_sortFilter, SLOT(setFilterFixedString(QString)));
+ connect(Client::ircListHelper(), SIGNAL(channelListReceived(const NetworkId &, const QStringList &, QList<IrcListHelper::ChannelDescription> )),
+ this, SLOT(receiveChannelList(NetworkId, QStringList, QList<IrcListHelper::ChannelDescription> )));
+ connect(Client::ircListHelper(), SIGNAL(finishedListReported(const NetworkId &)), this, SLOT(reportFinishedList()));
+ connect(Client::ircListHelper(), SIGNAL(errorReported(const QString &)), this, SLOT(showError(const QString &)));
+ connect(ui.channelListView, SIGNAL(activated(QModelIndex)), this, SLOT(joinChannel(QModelIndex)));
+
+ setAdvancedMode(false);
+ enableQuery(true);
+ showFilterLine(false);
+ showErrors(false);