forked from qt-creator/qt-creator
Qnx: Code cosmetics
Qt 5 connects, namespaces, ... Change-Id: I887f75627e4ff53f6c5bde20456b809d8f2ad463 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
#include <utils/pathchooser.h>
|
||||
#include <utils/fancylineedit.h>
|
||||
|
||||
using namespace Qnx;
|
||||
using namespace Qnx::Internal;
|
||||
namespace Qnx {
|
||||
namespace Internal {
|
||||
|
||||
PathChooserDelegate::PathChooserDelegate(QObject *parent)
|
||||
: QStyledItemDelegate(parent)
|
||||
@@ -58,7 +58,7 @@ QWidget *PathChooserDelegate::createEditor(QWidget *parent, const QStyleOptionVi
|
||||
editor->setAutoFillBackground(true); // To hide the text beneath the editor widget
|
||||
editor->lineEdit()->setMinimumWidth(0);
|
||||
|
||||
connect(editor, SIGNAL(browsingFinished()), this, SLOT(emitCommitData()));
|
||||
connect(editor, &Utils::PathChooser::browsingFinished, this, &PathChooserDelegate::emitCommitData);
|
||||
|
||||
return editor;
|
||||
}
|
||||
@@ -101,3 +101,6 @@ void PathChooserDelegate::emitCommitData()
|
||||
{
|
||||
emit commitData(qobject_cast<QWidget*>(sender()));
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Qnx
|
||||
|
||||
Reference in New Issue
Block a user