debugger: remove obstructing frame around l&w item delegates

This commit is contained in:
hjk
2011-02-17 16:31:43 +01:00
parent 873e379eba
commit 0d4ef2939f
3 changed files with 20 additions and 11 deletions

View File

@@ -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,