Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0d4ef293
Commit
0d4ef293
authored
Feb 17, 2011
by
hjk
Browse files
debugger: remove obstructing frame around l&w item delegates
parent
873e379e
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchdelegatewidgets.cpp
View file @
0d4ef293
...
...
@@ -44,9 +44,9 @@ namespace Debugger {
namespace
Internal
{
// Basic watch line edit.
WatchLineEdit
::
WatchLineEdit
(
QWidget
*
parent
)
:
QLineEdit
(
parent
)
{
}
WatchLineEdit
::
WatchLineEdit
(
QWidget
*
parent
)
:
QLineEdit
(
parent
)
{
}
QVariant
WatchLineEdit
::
modelData
()
const
{
...
...
@@ -62,7 +62,8 @@ void WatchLineEdit::setModelData(const QVariant &v)
/* ------ IntegerWatchLineEdit helpers:
* Integer validator using different number bases. */
class
IntegerValidator
:
public
QValidator
{
class
IntegerValidator
:
public
QValidator
{
public:
explicit
IntegerValidator
(
QObject
*
parent
);
virtual
State
validate
(
QString
&
,
int
&
)
const
;
...
...
src/plugins/debugger/watchhandler.cpp
View file @
0d4ef293
...
...
@@ -774,10 +774,11 @@ Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const
if
(
!
idx
.
isValid
())
return
Qt
::
ItemFlags
();
//
e
nabled, editable, selectable, checkable, and can be used both as the
//
E
nabled, editable, selectable, checkable, and can be used both as the
// source of a drag and drop operation and as a drop target.
static
const
Qt
::
ItemFlags
notEditable
=
Qt
::
ItemIsSelectable
|
Qt
::
ItemIsEnabled
;
static
const
Qt
::
ItemFlags
notEditable
=
Qt
::
ItemIsSelectable
|
Qt
::
ItemIsEnabled
;
static
const
Qt
::
ItemFlags
editable
=
notEditable
|
Qt
::
ItemIsEditable
;
// Disable editing if debuggee is positively running.
...
...
src/plugins/debugger/watchwindow.cpp
View file @
0d4ef293
...
...
@@ -51,13 +51,14 @@
#include
<QtCore/QMetaProperty>
#include
<QtCore/QVariant>
#include
<QtGui/QApplication>
#include
<QtGui/QClipboard>
#include
<QtGui/QContextMenuEvent>
#include
<QtGui/QHeaderView>
#include
<QtGui/QItemDelegate>
#include
<QtGui/QMenu>
#include
<QtGui/QPainter>
#include
<QtGui/QResizeEvent>
#include
<QtGui/QClipboard>
#include
<QtGui/QApplication>
/////////////////////////////////////////////////////////////////////
//
...
...
@@ -94,12 +95,18 @@ public:
break
;
}
WatchLineEdit
*
edit
=
WatchLineEdit
::
create
(
type
,
parent
);
if
(
IntegerWatchLineEdit
*
intEdit
=
qobject_cast
<
IntegerWatchLineEdit
*>
(
edit
))
edit
->
setFrame
(
false
);
IntegerWatchLineEdit
*
intEdit
=
qobject_cast
<
IntegerWatchLineEdit
*>
(
edit
);
if
(
intEdit
)
intEdit
->
setBase
(
index
.
data
(
LocalsIntegerBaseRole
).
toInt
());
return
edit
;
}
// Standard line edits for the rest
return
new
QLineEdit
(
parent
);
// Standard line edits for the rest.
QLineEdit
*
lineEdit
=
new
QLineEdit
(
parent
);
lineEdit
->
setFrame
(
false
);
return
lineEdit
;
}
void
setModelData
(
QWidget
*
editor
,
QAbstractItemModel
*
model
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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