/* flip - pageflipper for TIFF animations * Copyright (C) 1999 Mark B. Allan (mba@reptilelabour.com) * * "flip" is free software; you can redistribute it and/or use * it and/or modify it under the terms of the "Artistic License" */ #ifndef mwidgets_h #define mwidgets_h #include #include #include /** * Tool button that uses PaletteBackground rather than the useless default * PaletteButton. */ class MToolButton : public QToolButton { public: MToolButton( QWidget * parent, const char * name = 0 ); ~MToolButton(); }; /** * QLineEdit that emits returnPressed() on focus out */ class MLineEdit : public QLineEdit { public: MLineEdit(QWidget *parent = 0, const char* name = 0); ~MLineEdit(); protected: void focusOutEvent(QFocusEvent *); }; /** * MTabWidget that uses a palette based on Button */ class MTabWidget : public QTabWidget { public: MTabWidget(QWidget *parent = 0, const char* name = 0); ~MTabWidget(); protected: void paletteChange(const QPalette &oldPalette); }; #endif