2017-11-22 15:54:32 +00:00
|
|
|
/* url_link_delegate.h
|
|
|
|
* Delegates for displaying links as links, including elide model
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef URL_LINK_DELEGATE_H
|
|
|
|
#define URL_LINK_DELEGATE_H
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
#include <QStyleOptionViewItem>
|
|
|
|
#include <QModelIndex>
|
|
|
|
#include <QAbstractItemModel>
|
|
|
|
|
|
|
|
class UrlLinkDelegate : public QStyledItemDelegate
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit UrlLinkDelegate(QObject *parent = Q_NULLPTR);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
|
|
};
|
|
|
|
#endif // URL_LINK_DELEGATE_H
|
2017-11-24 14:46:30 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
*/
|