Skip to content
Snippets Groups Projects
Commit ec692943 authored by hjk's avatar hjk
Browse files

utils: base PathChooser on FancyLineEdit


Change-Id: Ibf5e7ca866dca0816efda9f75af2cd17ac61c7c7
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 5ff302d8
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ BaseValidatingLineEditPrivate::BaseValidatingLineEditPrivate(const QWidget *w) :
}
BaseValidatingLineEdit::BaseValidatingLineEdit(QWidget *parent) :
QLineEdit(parent),
FancyLineEdit(parent),
m_bd(new BaseValidatingLineEditPrivate(this))
{
// Note that textChanged() is also triggered automagically by
......
......@@ -33,13 +33,13 @@
#include "utils_global.h"
#include <QLineEdit>
#include "fancylineedit.h"
namespace Utils {
struct BaseValidatingLineEditPrivate;
class QTCREATOR_UTILS_EXPORT BaseValidatingLineEdit : public QLineEdit
class QTCREATOR_UTILS_EXPORT BaseValidatingLineEdit : public FancyLineEdit
{
Q_OBJECT
Q_PROPERTY(QString initialText READ initialText WRITE setInitialText DESIGNABLE true)
......
......@@ -598,7 +598,7 @@ QString PathChooser::makeDialogTitle(const QString &title)
return d->m_dialogTitleOverride;
}
QLineEdit *PathChooser::lineEdit() const
FancyLineEdit *PathChooser::lineEdit() const
{
// HACK: Make it work with HistoryCompleter.
if (d->m_lineEdit->objectName().isEmpty())
......
......@@ -34,6 +34,7 @@
#include "utils_global.h"
#include "fileutils.h"
#include "fancylineedit.h"
#include <QWidget>
......@@ -115,7 +116,7 @@ public:
void insertButton(int index, const QString &text, QObject *receiver, const char *slotFunc);
QAbstractButton *buttonAtIndex(int index) const;
QLineEdit *lineEdit() const;
FancyLineEdit *lineEdit() const;
// For PathChoosers of 'Command' type, this property specifies the arguments
// required to obtain the tool version (commonly, '--version'). Setting them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment