Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628244
PushDialog.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
PushDialog.cpp
View Options
#include
"PushDialog.h"
#include
"ui_PushDialog.h"
PushDialog
::
PushDialog
(
QWidget
*
parent
,
QStringList
const
&
remotes
,
QStringList
const
&
branches
,
const
RemoteBranch
&
remote_branch
)
:
QDialog
(
parent
),
ui
(
new
Ui
::
PushDialog
)
{
ui
->
setupUi
(
this
);
if
(
remotes
.
isEmpty
()
||
branches
.
isEmpty
())
{
// thru
}
else
{
for
(
QString
const
&
remote
:
remotes
)
{
ui
->
comboBox_remote
->
addItem
(
remote
);
}
for
(
QString
const
&
branch
:
branches
)
{
ui
->
comboBox_branch
->
addItem
(
branch
);
}
}
if
(
!
remote_branch
.
remote
.
isEmpty
())
{
ui
->
comboBox_remote
->
setCurrentText
(
remote_branch
.
remote
);
}
if
(
!
remote_branch
.
branch
.
isEmpty
())
{
ui
->
comboBox_branch
->
setCurrentText
(
remote_branch
.
branch
);
}
}
PushDialog
::~
PushDialog
()
{
delete
ui
;
}
PushDialog
::
Action
PushDialog
::
action
()
const
{
#if 1
return
PushSetUpstream
;
#else
if
(
ui
->
radioButton_push_set_upstream
->
isChecked
())
{
return
PushSetUpstream
;
}
return
PushSimple
;
#endif
}
QString
PushDialog
::
remote
()
const
{
return
ui
->
comboBox_remote
->
currentText
();
}
QString
PushDialog
::
branch
()
const
{
return
ui
->
comboBox_branch
->
currentText
();
}
#if 0
void PushDialog::on_radioButton_push_simply_clicked()
{
ui->frame_set_upstream->setEnabled(false);
}
void PushDialog::on_radioButton_push_set_upstream_clicked()
{
ui->frame_set_upstream->setEnabled(true);
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 3:26 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137574
Default Alt Text
PushDialog.cpp (1 KB)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline