~ubuntu-branches/ubuntu/maverick/transmission/maverick

« back to all changes in this revision

Viewing changes to qt/triconpushbutton.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2009-05-22 21:57:30 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (2.1.18 sid) (1.3.8 upstream)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20090522215730-ly5kgv5aw9ig2u82
Tags: upstream-1.61
ImportĀ upstreamĀ versionĀ 1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file Copyright (C) 2009 Charles Kerr <charles@transmissionbt.com>
 
3
 *
 
4
 * This file is licensed by the GPL version 2.  Works owned by the
 
5
 * Transmission project are granted a special exemption to clause 2(b)
 
6
 * so that the bulk of its code can remain under the MIT license.
 
7
 * This exemption does not extend to derived works not owned by
 
8
 * the Transmission project.
 
9
 *
 
10
 * $Id:$
 
11
 */
 
12
 
 
13
#ifndef QTR_IconPushButton_H
 
14
#define QTR_IconPushButton_H
 
15
 
 
16
#include <QPushButton>
 
17
 
 
18
class QIcon;
 
19
 
 
20
class TrIconPushButton: public QPushButton
 
21
{
 
22
        Q_OBJECT
 
23
 
 
24
    public:
 
25
        TrIconPushButton( QWidget * parent = 0 );
 
26
        TrIconPushButton( const QIcon&, QWidget * parent = 0 );
 
27
        virtual ~TrIconPushButton( ) { }
 
28
        QSize sizeHint () const;
 
29
 
 
30
    protected:
 
31
        void paintEvent( QPaintEvent * event );
 
32
};
 
33
 
 
34
#endif // QTR_IconPushButton_H