~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to lib/kofficeui/tktoolbarbutton.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <tkaction.h>
23
23
 
24
24
#include <qpixmap.h>
25
 
#include <qbutton.h>
26
 
#include <qfont.h>
 
25
#include <qtoolbutton.h>
27
26
#include <kglobal.h>
28
27
 
29
28
class KToolBar;
31
30
class QPopupMenu;
32
31
class QPainter;
33
32
 
34
 
class TKToolBarButton : public QButton
 
33
class TKToolBarButton : public QToolButton
35
34
{ Q_OBJECT
36
35
public:
37
36
  TKToolBarButton(const QString& icon, const QString& txt,
179
178
 
180
179
  QPixmap getActivePixmap() const;
181
180
 
 
181
  virtual QSize sizeHint() const;
 
182
  virtual QSize minimumSizeHint() const;
 
183
 
182
184
signals:
183
185
  void buttonClicked();
184
186
  void buttonPressed();
203
205
        int y = pos.y();
204
206
        return (x > width() - 12 && x <= width() && y > 0 && y < height());
205
207
  }
206
 
        
 
208
 
207
209
private:
208
210
  QPixmap defaultPixmap;
209
211
  QPixmap activePixmap;