tools/templates/pixlabel.h
author Wuzzy <Wuzzy2@mail.ru>
Thu, 03 May 2018 15:18:28 +0200
changeset 13360 e27540ad33bd
parent 8442 535a00ca0d35
permissions -rw-r--r--
Massive Continental supplies update List of changes: * Invulnerability protects from sabotage damage * Sabotage kills hog instantly when health reaches 0 * Reliably prevent using of Lonely Cries and baseball bat specials when usage not allowed * Don't explode Anno 1302 and Medicine if drowning * Don't play “Missed” and “Laugh” taunt when those don't make sense * Major rewrite of ALL strings for better usability * Add custom weapon tooltips * Major refactoring * Improve audiovisual effects * Show message when hog receives new continent ammo * Sabotaged hedgehogs also emit smoke when it's not their turn * Can switch continent in reverse order with [Precise]+[Switch] * Fix retreat timer not turning red for some weapons
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     1
#include <QLabel>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     2
#include <QRect>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     3
#include <QList>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     4
#include <QMouseEvent>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     5
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     6
class PixLabel : public QLabel
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     7
{
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
     8
    Q_OBJECT
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     9
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    10
public:
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    11
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    12
    PixLabel();
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    13
    QList<QRect> rects;
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    14
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    15
public slots:
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    16
    void AddRect();
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    17
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    18
private:
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    19
    void paintEvent(QPaintEvent * event);
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    20
    void mousePressEvent(QMouseEvent * e);
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    21
};