diff options
authorOliver Sander <>2015-11-27 18:50:10 (GMT)
committerAlbert Astals Cid <>2015-11-27 18:50:10 (GMT)
commite5383ea2d6c25f628871a7af68022e95b62e8550 (patch)
parentc793fb2703bbeaf2847663013b62850fe6d970d3 (diff)
Set objectName for 'm_name'
The unit test 'editdrawingtooldialogtest' on the frameworks branch aborts at run-time. Reason: it expects the dialog to have a KLineEdit member with object name 'name'. That KLineEdit does exist in the dialog, but no object name is set for it at all. This patch explicitly sets the object name to 'name', which makes the editdrawingtooldialogtest pass again. REVIEW: 126158
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/editdrawingtooldialog.cpp b/conf/editdrawingtooldialog.cpp
index bcd65e1..a460b7c 100644
--- a/conf/editdrawingtooldialog.cpp
+++ b/conf/editdrawingtooldialog.cpp
@@ -41,6 +41,7 @@ EditDrawingToolDialog::EditDrawingToolDialog( const QDomElement &initialState, Q
mainLayout->addWidget( buttonBox );
m_name = new KLineEdit( widget );
+ m_name->setObjectName( QStringLiteral("name") );
mainLayout->addWidget( m_name );
QLabel *tmplabel = new QLabel( i18n( "&Name:" ), widget );