aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/urllineedit.h
blob: e7dcf36280d0c2e7b4bb3697cec3db7f2781566d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef URLLINEEDIT_H
#define URLLINEEDIT_H

#include <QLineEdit>
#include <QTextLayout>

class UrlLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    explicit UrlLineEdit(QWidget *parent = 0);

signals:

public slots:
    void setUrl(const QUrl &url);

private:
    void setTextFormat(const QTextLayout::FormatRange &format);
    void clearTextFormat();
};

#endif // URLLINEEDIT_H