19 #include <QStringList> 34 connect(
model_, SIGNAL(urlLoaded(
const QString&)),
this,
56 QStringList urlParts = url.split(
"://");
58 if (urlParts.count() > 1) {
65 QStringList pathParts = path.split(
"/");
71 if (!scheme.isEmpty())
72 parts.append(scheme+
"://");
73 parts.append(pathParts);
87 QString prefix = completionPrefix();
89 if (prefix.startsWith(url) && (prefix != (url+
"/")))
UrlCompleter(QObject *parent=0)
void modelUrlLoaded(const QString &url)
QStringList splitPath(const QString &url) const
QString getUrl(const QModelIndex &index) const
UrlItemModel * getModel() const
QString pathFromIndex(const QModelIndex &index) const