diff --git a/pokerth_game.pro b/pokerth_game.pro
index 632f9bd9..b1360960 100644
--- a/pokerth_game.pro
+++ b/pokerth_game.pro
@@ -149,6 +149,7 @@ HEADERS += \
src/gui/qt/mainwindow/mycardspixmaplabel.h \
src/gui/qt/mainwindow/mysetlabel.h \
src/gui/qt/mainwindow/mystatuslabel.h \
+ src/gui/qt/mainwindow/myavatarlabel.h \
src/gui/qt/mainwindow/myrighttabwidget.h \
src/gui/qt/mainwindow/mylefttabwidget.h \
src/gui/qt/mainwindow/startsplash/startsplash.h \
@@ -208,6 +209,7 @@ SOURCES += \
src/gui/qt/mainwindow/mycardspixmaplabel.cpp \
src/gui/qt/mainwindow/mysetlabel.cpp \
src/gui/qt/mainwindow/mystatuslabel.cpp \
+ src/gui/qt/mainwindow/myavatarlabel.cpp \
src/gui/qt/mainwindow/myrighttabwidget.cpp \
src/gui/qt/mainwindow/mylefttabwidget.cpp \
src/gui/qt/mainwindow/startsplash/startsplash.cpp \
diff --git a/src/gui/qt/mainwindow.ui b/src/gui/qt/mainwindow.ui
index 74c228e7..d8eb765e 100644
--- a/src/gui/qt/mainwindow.ui
+++ b/src/gui/qt/mainwindow.ui
@@ -220,7 +220,7 @@
-
+
17
@@ -465,7 +465,7 @@
-
+
17
@@ -707,7 +707,7 @@
-
+
17
@@ -962,7 +962,7 @@
-
+
17
@@ -1238,7 +1238,7 @@
-
+
17
@@ -1848,7 +1848,7 @@
-
+
17
@@ -2282,7 +2282,7 @@
-
-
+
50
@@ -3379,6 +3379,11 @@
QLabel
+
+ MyAvatarLabel
+ QLabel
+
+
diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp
index 6b8061a2..ee0d90ec 100755
--- a/src/gui/qt/mainwindow/mainwindowimpl.cpp
+++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp
@@ -37,6 +37,7 @@
#include "startsplash.h"
#include "mycardspixmaplabel.h"
#include "mysetlabel.h"
+#include "myavatarlabel.h"
#include "log.h"
#include "chat.h"
diff --git a/src/gui/qt/mainwindow/mainwindowimpl.h b/src/gui/qt/mainwindow/mainwindowimpl.h
index 6cf91226..e9e668df 100755
--- a/src/gui/qt/mainwindow/mainwindowimpl.h
+++ b/src/gui/qt/mainwindow/mainwindowimpl.h
@@ -40,6 +40,7 @@ class BoardInterface;
// class HandInterface;
class PlayerInterface;
class MyCardsPixmapLabel;
+class MyAvatarLabel;
class newGameDialogImpl;
class settingsDialogImpl;
class selectAvatarDialogImpl;
@@ -392,7 +393,7 @@ private:
MySetLabel *setLabelArray[MAX_NUMBER_OF_PLAYERS];
QLabel *actionLabelArray[MAX_NUMBER_OF_PLAYERS];
QLabel *playerNameLabelArray[MAX_NUMBER_OF_PLAYERS];
- QLabel *playerAvatarLabelArray[MAX_NUMBER_OF_PLAYERS];
+ MyAvatarLabel *playerAvatarLabelArray[MAX_NUMBER_OF_PLAYERS];
QGroupBox *groupBoxArray[MAX_NUMBER_OF_PLAYERS];
MyCardsPixmapLabel *boardCardsArray[5];
diff --git a/src/gui/qt/mainwindow/myavatarlabel.cpp b/src/gui/qt/mainwindow/myavatarlabel.cpp
new file mode 100644
index 00000000..60e331a5
--- /dev/null
+++ b/src/gui/qt/mainwindow/myavatarlabel.cpp
@@ -0,0 +1,40 @@
+//
+// C++ Implementation: mycardspixmaplabel
+//
+// Description:
+//
+//
+// Author: FThauer FHammer , (C) 2007
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#include "mysetlabel.h"
+
+#include "mainwindowimpl.h"
+
+using namespace std;
+
+MyAvatarLabel::MyAvatarLabel(QGroupBox* parent)
+ : QLabel(parent)
+{
+
+ myContextMenu = new QMenu;
+ myContextMenu->addAction(tr("Vote for kick this user"));
+
+}
+
+
+MyAvatarLabel::~MyAvatarLabel()
+{
+}
+
+void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent * event ) {
+
+// showContextMenu(event->globalPos());
+}
+
+void MyAvatarLabel::showContextMenu(const QPoint &pos) {
+
+// myContextMenu->popup(pos);
+}
diff --git a/src/gui/qt/mainwindow/myavatarlabel.h b/src/gui/qt/mainwindow/myavatarlabel.h
new file mode 100644
index 00000000..c2806a14
--- /dev/null
+++ b/src/gui/qt/mainwindow/myavatarlabel.h
@@ -0,0 +1,45 @@
+//
+// C++ Interface: mycardspixmaplabel
+//
+// Description:
+//
+//
+// Author: FThauer FHammer , (C) 2007
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef MYAVATARLABEL_H
+#define MYAVATARLABEL_H
+
+#include
+
+#include
+#include
+
+class mainWindowImpl;
+
+class MyAvatarLabel : public QLabel
+{
+Q_OBJECT
+public:
+ MyAvatarLabel(QGroupBox*);
+
+ ~MyAvatarLabel();
+
+
+ void setMyW ( mainWindowImpl* theValue ) { myW = theValue; }
+
+ void contextMenuEvent ( QContextMenuEvent * event );
+
+public slots:
+
+ void showContextMenu(const QPoint &pos);
+
+private:
+
+ mainWindowImpl *myW;
+ QMenu *myContextMenu;
+};
+
+#endif