layout = new QHBoxLayout(this);
alphabetList = new QListWidget(this);
- alphabetList->setMaximumWidth(96);
+ alphabetList->setMaximumWidth(64);
layout->addWidget(alphabetList);
connect(alphabetList,
SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
SLOT(alphabetItemChanged(QListWidgetItem*, QListWidgetItem*)));
mfgList = new QListWidget(this);
+ mfgList->setMaximumWidth(192);
layout->addWidget(mfgList);
connect(mfgList,
SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
{
mfgList->clear();
modelList->removeAllRows();
- if (current)
- {
+ if (current) {
mfgList->addItems((*remoteDB)[current->text()].keys());
}
}
QListWidgetItem * /*previous*/)
{
modelList->removeAllRows();
- if (current)
- {
+ if (current) {
RemoteList remotes =
(*remoteDB)[alphabetList->currentItem()->text()][current->text()];
foreach(Remote *remote, remotes) {
void SelectRemoteDlg::downloadRemote()
{
Remote *currentModel = modelList->selected();
- if (currentModel)
- {
+ if (currentModel) {
+ setResult(QDialog::Accepted);
setBusy();
connect(currentModel, SIGNAL(saveFinished()),
this, SLOT(close()));
m_selectRemoteBtn = new QPushButton(tr("Select remote"), this);
m_aboutBtn = new QPushButton(tr("About"), this);
m_rateUpBtn = new QPushButton(
- QIcon(settings.value("rateUpIcon",
- "/usr/share/icons/hicolor/48x48/hildon/chat_smiley_happy.png").
- toString()),
+ QIcon(settings.value("symbolPath",
+ "/usr/share/irwi/symbols/").
+ toString() + "symbol_thumbs_up.png"),
"", this);
m_rateDownBtn = new QPushButton(
- QIcon(settings.value("rateDownIcon",
- "/usr/share/icons/hicolor/48x48/hildon/chat_smiley_sad.png").
- toString()),
+ QIcon(settings.value("symbolPath",
+ "/usr/share/irwi/symbols/").
+ toString() + "symbol_thumbs_down.png"),
"", this);
m_rateUpBtn->setMaximumSize(72, 72);
m_rateDownBtn->setMaximumSize(72, 72);
SelectRemoteDlg dlg;
connect(&dlg, SIGNAL(remoteChanged(Remote)),
this, SLOT(setRemote(Remote)));
- dlg.exec();
+ if (dlg.exec() == QDialog::Rejected) {
+ onNetworkStatusUpdate();
+ }
}
void SettingsDlg::showAboutDlg()