diff options
author | kh1 <karsten.heimrich@nokia.com> | 2012-01-24 15:03:22 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@nokia.com> | 2012-01-24 15:14:06 +0100 |
commit | e1882210f822f7b17590196ca0e8368470e049c6 (patch) | |
tree | 3ce050b786300e9e2e9dbced50dd9faa154280e2 /installerbuilder/installerbase/settingsdialog.cpp | |
parent | cc793a71634288014d5ada65e83380bcd6f1b529 (diff) |
Fix QTIFW-92.
Select and open an editor on the repositories url field. Also
add some tool tips to get a hint on what to enter in the field.
Change-Id: Idd275f8f6309c28a6cbcb870ccf09f558499e812
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Diffstat (limited to 'installerbuilder/installerbase/settingsdialog.cpp')
-rw-r--r-- | installerbuilder/installerbase/settingsdialog.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/installerbuilder/installerbase/settingsdialog.cpp b/installerbuilder/installerbase/settingsdialog.cpp index 9e67ed15d..291be0242 100644 --- a/installerbuilder/installerbase/settingsdialog.cpp +++ b/installerbuilder/installerbase/settingsdialog.cpp @@ -117,6 +117,21 @@ QVariant RepositoryItem::data(int column, int role) const break; }; } break; + + case Qt::ToolTipRole: + switch (column) { + case 1: + return SettingsDialog::tr("Check this to use repository during fetch."); + case 2: + return SettingsDialog::tr("Add the username to authenticate on the server."); + case 3: + return SettingsDialog::tr("Add the password to authenticate on the server."); + case 4: + return SettingsDialog::tr("The servers URL that contains a valid repository."); + default: + return QVariant(); + } break; + break; }; return data; @@ -280,7 +295,7 @@ void SettingsDialog::addRepository() if (parent) { RepositoryItem *item = new RepositoryItem(QInstaller::Repository()); parent->insertChild(index, item); - m_ui->m_repositoriesView->editItem(item, 2); + m_ui->m_repositoriesView->editItem(item, 4); m_ui->m_repositoriesView->scrollToItem(item); m_ui->m_repositoriesView->setCurrentItem(item); } |