aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/classeditor
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/classeditor')
-rw-r--r--src/modules/classeditor/ClassEditorWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/classeditor/ClassEditorWindow.cpp b/src/modules/classeditor/ClassEditorWindow.cpp
index cee1e3d8c..39c265341 100644
--- a/src/modules/classeditor/ClassEditorWindow.cpp
+++ b/src/modules/classeditor/ClassEditorWindow.cpp
@@ -461,7 +461,7 @@ void ClassEditorWidget::createFullClass(KviKvsObjectClass * pClass, ClassEditorT
bool ClassEditorWidget::hasSelectedItems()
{
- return m_pTreeWidget->selectedItems().count() ? 1 : 0;
+ return m_pTreeWidget->selectedItems().count() ? true : false;
}
bool ClassEditorWidget::classExists(QString & szFullItemName)
@@ -2071,7 +2071,7 @@ KviClassEditorFunctionDialog::KviClassEditorFunctionDialog(QWidget * pParent, co
pLabel = new QLabel(pHBox);
pLabel->setObjectName("reminderlabel");
- pLabel->setWordWrap(1);
+ pLabel->setWordWrap(true);
pLabel->setText(__tr2qs_ctx("Please enter the optional reminder string for the member function:", "editor"));
m_pReminderLineEdit = new QLineEdit(pHBox);