Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
0772a90d
Commit
0772a90d
authored
Aug 16, 2019
by
Huff, Israel
Browse files
Fortify changes
parent
0a636677
Pipeline
#67542
passed with stages
in 15 minutes and 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixwidgets/numberpadwidget.cc
View file @
0772a90d
...
...
@@ -20,15 +20,15 @@ struct KeyboardLayoutEntry
const
KeyboardLayoutEntry
keyboardLayout
[]
=
{{
Qt
::
Key_7
,
"7"
},
{
Qt
::
Key_8
,
"8"
},
{
Qt
::
Key_9
,
"9"
},
{
NEXT_ROW_MARKER
,
0
},
{
NEXT_ROW_MARKER
,
nullptr
},
{
Qt
::
Key_4
,
"4"
},
{
Qt
::
Key_5
,
"5"
},
{
Qt
::
Key_6
,
"6"
},
{
NEXT_ROW_MARKER
,
0
},
{
NEXT_ROW_MARKER
,
nullptr
},
{
Qt
::
Key_1
,
"1"
},
{
Qt
::
Key_2
,
"2"
},
{
Qt
::
Key_3
,
"3"
},
{
NEXT_ROW_MARKER
,
0
},
{
NEXT_ROW_MARKER
,
nullptr
},
{
Qt
::
Key_0
,
"0"
},
{
Qt
::
Key_Period
,
"."
},
{
Qt
::
Key_Backspace
,
"Backspace"
}};
...
...
@@ -86,9 +86,10 @@ NumberPadWidget::NumberPadWidget(QWidget *parent)
void
NumberPadWidget
::
buttonClicked
(
int
key
)
{
Q
LineEdit
::
keyPressEvent
(
new
QKeyE
vent
(
QEvent
::
KeyPress
,
key
,
Qt
::
NoModifier
,
keyToCharacter
(
key
))
);
Q
KeyEvent
e
vent
(
QEvent
::
KeyPress
,
key
,
Qt
::
NoModifier
,
keyToCharacter
(
key
));
QLineEdit
::
keyPressEvent
(
&
event
);
}
void
NumberPadWidget
::
focusInEvent
(
QFocusEvent
*
event
)
{
QLineEdit
::
focusInEvent
(
event
);
...
...
radixwidgets/tabwidget.cc
View file @
0772a90d
...
...
@@ -2,7 +2,6 @@
#include <iostream>
#include <QLabel>
#include <QTabBar>
#include <QToolButton>
...
...
@@ -20,7 +19,8 @@ TabWidget::TabWidget(QWidget *parent)
mNewButton
->
setToolTip
(
"Add new tab"
);
mNewButton
->
setMaximumWidth
(
25
);
addTab
(
new
QLabel
(
""
),
QString
(
""
));
mLabel
=
new
QLabel
(
""
);
addTab
(
mLabel
,
QString
(
""
));
QWidget
*
newTabWidget
=
widget
(
0
);
newTabWidget
->
setObjectName
(
"tabwidget_new_tab"
);
tabBar
()
->
setTabButton
(
0
,
QTabBar
::
RightSide
,
mNewButton
);
...
...
radixwidgets/tabwidget.hh
View file @
0772a90d
#ifndef RADIX_RADIXWIDGETS_TABWIDGET_HH_
#define RADIX_RADIXWIDGETS_TABWIDGET_HH_
#include <QLabel>
#include <QPushButton>
#include <QTabWidget>
...
...
@@ -20,6 +21,7 @@ class RADIX_PUBLIC TabWidget : public QTabWidget
private:
QPushButton
*
mNewButton
;
QLabel
*
mLabel
;
signals:
void
addTabRequested
();
...
...
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