Mercurial > hg > easyhg
comparison settingsdialog.cpp @ 64:794db9353c7f
* Start rejigging the settings/repo-path dialog setup: startup dialog now asks for user name and email only
author | Chris Cannam |
---|---|
date | Wed, 17 Nov 2010 17:49:16 +0000 |
parents | 2340b00561d2 |
children | 3e6c3281fb97 |
comparison
equal
deleted
inserted
replaced
63:2340b00561d2 | 64:794db9353c7f |
---|---|
29 QPushButton *cancelButton; | 29 QPushButton *cancelButton; |
30 | 30 |
31 mainWnd = (MainWindow *) parent; | 31 mainWnd = (MainWindow *) parent; |
32 | 32 |
33 userInfoLabel = new QLabel(tr("User info for commits, e.g. John Smith <john.smith@mail.com>")); | 33 userInfoLabel = new QLabel(tr("User info for commits, e.g. John Smith <john.smith@mail.com>")); |
34 userInfoLineEdit = new QLineEdit(mainWnd->userInfo); | 34 userInfoLineEdit = new QLineEdit("");//!!!mainWnd->userInfo); |
35 userInfoLabel -> setBuddy(userInfoLineEdit); | 35 userInfoLabel -> setBuddy(userInfoLineEdit); |
36 | 36 |
37 remoteRepoLabel = new QLabel(tr("Remote repository path, e.g. http://192.168.1.10:8000/ or /home/mike/anotherrepo/ or c:\\anotherrepo\\")); | 37 remoteRepoLabel = new QLabel(tr("Remote repository path, e.g. http://192.168.1.10:8000/ or /home/mike/anotherrepo/ or c:\\anotherrepo\\")); |
38 remoteRepoCombo = new QComboBox(); | 38 remoteRepoCombo = new QComboBox(); |
39 remoteRepoCombo -> insertItem(0, mainWnd->remoteRepoPath); | 39 remoteRepoCombo -> insertItem(0, mainWnd->remoteRepoPath); |
99 | 99 |
100 void SettingsDialog::okClicked() | 100 void SettingsDialog::okClicked() |
101 { | 101 { |
102 QString tmp; | 102 QString tmp; |
103 | 103 |
104 mainWnd -> firstStart = false; | 104 //!!! mainWnd -> firstStart = false; |
105 mainWnd -> userInfo = userInfoLineEdit->text(); | 105 //!!! mainWnd -> userInfo = userInfoLineEdit->text(); |
106 | 106 |
107 if (mainWnd -> remoteRepoPath != remoteRepoCombo-> currentText()) | 107 if (mainWnd -> remoteRepoPath != remoteRepoCombo-> currentText()) |
108 { | 108 { |
109 //!!! insertPathToMruList(mainWnd -> remoteRepoPath, mainWnd -> remoteRepoMruList); | 109 //!!! insertPathToMruList(mainWnd -> remoteRepoPath, mainWnd -> remoteRepoMruList); |
110 mainWnd -> remoteRepoPath = remoteRepoCombo-> currentText(); | 110 mainWnd -> remoteRepoPath = remoteRepoCombo-> currentText(); |