Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F621235
CheckoutBranchDialog.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
836 B
Referenced Files
None
Subscribers
None
CheckoutBranchDialog.cpp
View Options
#include
"CheckoutBranchDialog.h"
#include
"ui_CheckoutBranchDialog.h"
CheckoutBranchDialog
::
CheckoutBranchDialog
(
QWidget
*
parent
,
QList
<
Git
::
Branch
>
const
&
branches
)
:
QDialog
(
parent
),
ui
(
new
Ui
::
CheckoutBranchDialog
)
{
ui
->
setupUi
(
this
);
Qt
::
WindowFlags
flags
=
windowFlags
();
flags
&=
~
Qt
::
WindowContextHelpButtonHint
;
setWindowFlags
(
flags
);
QString
current_branch
;
for
(
int
i
=
0
;
i
<
branches
.
size
();
i
++
)
{
Git
::
Branch
const
&
b
=
branches
[
i
];
if
(
b
.
flags
&
Git
::
Branch
::
Current
)
{
current_branch
=
b
.
name
;
}
else
if
(
b
.
name
.
indexOf
(
'/'
)
<
0
)
{
ui
->
comboBox_branches
->
addItem
(
b
.
name
);
}
}
ui
->
label_current_branch
->
setText
(
current_branch
);
}
CheckoutBranchDialog
::~
CheckoutBranchDialog
()
{
delete
ui
;
}
QString
CheckoutBranchDialog
::
branchName
()
const
{
return
ui
->
comboBox_branches
->
currentText
();
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 6:53 PM (18 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132580
Default Alt Text
CheckoutBranchDialog.cpp (836 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline