Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
ce75d71b
Commit
ce75d71b
authored
Jul 06, 2015
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Ctrl+A on output pane
parent
70a0dd15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/plugins/coregui/terminal_onesession.cpp
src/plugins/coregui/terminal_onesession.cpp
+9
-0
No files found.
src/plugins/coregui/terminal_onesession.cpp
View file @
ce75d71b
...
@@ -187,9 +187,12 @@ void OneSession::relayout(uint realWidth, size_t fromLine, bool headerAndFooter)
...
@@ -187,9 +187,12 @@ void OneSession::relayout(uint realWidth, size_t fromLine, bool headerAndFooter)
// 2. Header
// 2. Header
visibleHeader_
=
headerText
();
visibleHeader_
=
headerText
();
LineProp
old
=
headerProp_
;
headerProp_
.
clear
();
headerProp_
.
clear
();
for
(
size_t
i
=
0
;
i
<
visibleHeader_
.
length
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
visibleHeader_
.
length
();
i
++
)
{
headerProp_
.
push_back
(
CS_Output
);
headerProp_
.
push_back
(
CS_Output
);
if
(
i
<
old
.
size
())
headerProp_
[
i
]
=
old
[
i
];
}
}
headerRect_
=
QRect
(
BodyPadding
,
headerRect_
=
QRect
(
BodyPadding
,
0
,
0
,
...
@@ -198,9 +201,12 @@ void OneSession::relayout(uint realWidth, size_t fromLine, bool headerAndFooter)
...
@@ -198,9 +201,12 @@ void OneSession::relayout(uint realWidth, size_t fromLine, bool headerAndFooter)
// 3. Footer
// 3. Footer
visibleFooter_
=
footerText
();
visibleFooter_
=
footerText
();
old
=
footerProp_
;
footerProp_
.
clear
();
footerProp_
.
clear
();
for
(
size_t
i
=
0
;
i
<
visibleFooter_
.
length
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
visibleFooter_
.
length
();
i
++
)
{
footerProp_
.
push_back
(
CS_Output
);
footerProp_
.
push_back
(
CS_Output
);
if
(
i
<
old
.
size
())
footerProp_
[
i
]
=
old
[
i
];
}
}
footerRect_
=
footerText
().
isEmpty
()
footerRect_
=
footerText
().
isEmpty
()
?
QRect
(
BodyPadding
,
?
QRect
(
BodyPadding
,
...
@@ -289,6 +295,7 @@ uint OneSession::drawUtilityText(
...
@@ -289,6 +295,7 @@ uint OneSession::drawUtilityText(
p
.
setBrush
(
selectionBackroundBrush
);
p
.
setBrush
(
selectionBackroundBrush
);
p
.
drawRect
(
xx
,
topLeft
.
y
(),
cw
,
height
);
p
.
drawRect
(
xx
,
topLeft
.
y
(),
cw
,
height
);
p
.
setPen
(
selectedTextColor
);
p
.
setPen
(
selectedTextColor
);
qDebug
()
<<
"UT has selection"
;
}
}
else
{
else
{
p
.
setPen
(
QColor
(
Qt
::
darkGray
));
p
.
setPen
(
QColor
(
Qt
::
darkGray
));
...
@@ -398,6 +405,7 @@ uint OneSession::drawMainText(QPainter &p, const QPoint & topLeft, const QRect &
...
@@ -398,6 +405,7 @@ uint OneSession::drawMainText(QPainter &p, const QPoint & topLeft, const QRect &
p
.
setPen
(
Qt
::
NoPen
);
p
.
setPen
(
Qt
::
NoPen
);
p
.
setBrush
(
selectionBackroundBrush
);
p
.
setBrush
(
selectionBackroundBrush
);
p
.
drawRect
(
xx
,
yy
-
atom
.
height
(),
atom
.
width
(),
atom
.
height
());
p
.
drawRect
(
xx
,
yy
-
atom
.
height
(),
atom
.
width
(),
atom
.
height
());
qDebug
()
<<
"MT has selection"
;
}
}
if
(
spec
&
SelectionMask
)
if
(
spec
&
SelectionMask
)
p
.
setPen
(
selectedTextColor
);
p
.
setPen
(
selectedTextColor
);
...
@@ -583,6 +591,7 @@ void OneSession::selectAll()
...
@@ -583,6 +591,7 @@ void OneSession::selectAll()
}
}
selectedLineEnds_
[
l
]
=
true
;
selectedLineEnds_
[
l
]
=
true
;
}
}
relayout
(
parent_
->
width
()
-
2
*
SessionMargin
,
0
,
true
);
emit
updateRequest
();
emit
updateRequest
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment