summaryrefslogtreecommitdiff
path: root/stats_display_window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stats_display_window.cpp')
-rw-r--r--stats_display_window.cpp27
1 files changed, 26 insertions, 1 deletions
diff --git a/stats_display_window.cpp b/stats_display_window.cpp
index 577586e..5e9b570 100644
--- a/stats_display_window.cpp
+++ b/stats_display_window.cpp
@@ -7,6 +7,7 @@ stats_display_window::stats_display_window(QWidget *parent) :
{
ui->setupUi(this);
connect(this, SIGNAL(window_loaded()), this, SLOT(window_open()), Qt::ConnectionType(Qt::QueuedConnection | Qt::UniqueConnection));
+ ui->graphical_view_button->hide(); /* will i ever do this? */
}
stats_display_window::~stats_display_window()
@@ -14,6 +15,13 @@ stats_display_window::~stats_display_window()
delete ui;
}
+QStringList stats_display_window::get_most_kills_gun()
+{
+ QStringList ret;
+ ret << "1" << "2";
+ return ret;
+}
+
void stats_display_window::setup_user()
{
/*
@@ -27,7 +35,11 @@ void stats_display_window::setup_user()
user.user_64id = parse.parse_user_data("\"steamid\":", ": ");
download.download_file(user.avatar_url, "avatar.jpg");
/* now we have to deal with our user account details */
- ui->username_label->setText(user.username.left(15));
+ if (user.username.length() > 15)
+ {
+ ui->username_label->setText(user.username.left(15) + "[...]");
+ } else
+ ui->username_label->setText(user.username);
if (user.realname == "null")
ui->realname_label->setText("Real name not set");
else
@@ -222,3 +234,16 @@ void stats_display_window::on_manage_users_button_clicked()
{
manage.show();
}
+
+void stats_display_window::on_graphical_view_button_clicked()
+{
+ graphs.show();
+}
+
+void stats_display_window::on_game_integration_button_clicked()
+{
+ /*
+ * game state integration
+ */
+ game.show();
+}