mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
raised server timeout, added ping widget
This commit is contained in:
parent
3c8f2b878b
commit
b8690627c8
4 changed files with 62 additions and 18 deletions
|
|
@ -43,6 +43,19 @@ class PhasesToolbar;
|
|||
class GameSelector;
|
||||
class ChatWidget;
|
||||
|
||||
class PingWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
QColor color;
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event);
|
||||
public:
|
||||
PingWidget(QWidget *parent = 0);
|
||||
QSize sizeHint() const;
|
||||
public slots:
|
||||
void setPercentage(int value, int max);
|
||||
};
|
||||
|
||||
class MainWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
|
|
@ -72,6 +85,7 @@ private:
|
|||
QAction *aCloseMostRecentZoneView;
|
||||
QVBoxLayout *viewLayout;
|
||||
|
||||
PingWidget *pingWidget;
|
||||
CardInfoWidget *cardInfo;
|
||||
MessageLogWidget *messageLog;
|
||||
QLabel *sayLabel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue