Logo Search packages:      
Sourcecode: qgit version File versions  Download package

revdesc.h

/*
      Author: Marco Costalba (C) 2005-2006

      Copyright: See COPYING file that comes with this distribution
*/
#ifndef REVDESC_H
#define REVDESC_H

#include <qtextbrowser.h>

class QPopupMenu;
class Domain;

/*
      this is placed by Qt Designer as a custom widget.
      we prefer QTextBrowser inheritance above
      composition to override createPopupMenu()
*/

class RevDesc: public QTextBrowser {
Q_OBJECT
public:
      RevDesc(QWidget* parent = 0, const char* name = 0);
      void setDomain(Domain* dm) { d = dm; };

protected:
      virtual QPopupMenu* createPopupMenu(const QPoint& pos);

private slots:
      void on_linkClicked(const QString& link);
      void on_highlighted(const QString& link);
      void on_linkCopy();

private:
      Domain* d;
      QString highlightedLink;
};

#endif

Generated by  Doxygen 1.6.0   Back to index