Commit ce1875687c09cb7f985fba975352a7a90a7be265
1 parent
ca680146
git-svn-id: svn://imanolbarba.net/PAD@55 c2ee353e-ed0d-4329-bf56-03aec153487f
Showing
6 changed files
with
6 additions
and
25 deletions
QChatClient/QChatClient.pro.user
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE QtCreatorProject> | 2 | <!DOCTYPE QtCreatorProject> |
3 | -<!-- Written by QtCreator 2.7.0, 2014-01-07T00:45:31. --> | 3 | +<!-- Written by QtCreator 2.7.1, 2014-01-07T07:37:08. --> |
4 | <qtcreator> | 4 | <qtcreator> |
5 | <data> | 5 | <data> |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -51,9 +51,9 @@ | @@ -51,9 +51,9 @@ | ||
51 | <data> | 51 | <data> |
52 | <variable>ProjectExplorer.Project.Target.0</variable> | 52 | <variable>ProjectExplorer.Project.Target.0</variable> |
53 | <valuemap type="QVariantMap"> | 53 | <valuemap type="QVariantMap"> |
54 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | ||
55 | - <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | ||
56 | - <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{430bae4e-c8d6-488c-936e-c89fd5587cd0}</value> | 54 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 5.0.1 (qt5)</value> |
55 | + <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Qt 5.0.1 (qt5)</value> | ||
56 | + <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{c01623e0-8a32-406c-bbaa-3e691c0f6afc}</value> | ||
57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | 57 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | 58 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | 59 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
@@ -189,6 +189,7 @@ | @@ -189,6 +189,7 @@ | ||
189 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | 189 | <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
190 | </valuemap> | 190 | </valuemap> |
191 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | 191 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
192 | + <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/> | ||
192 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | 193 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
193 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | 194 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
194 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | 195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
@@ -246,7 +247,7 @@ | @@ -246,7 +247,7 @@ | ||
246 | </data> | 247 | </data> |
247 | <data> | 248 | <data> |
248 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | 249 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
249 | - <value type="QString">{0fd5067a-d849-4d4e-9457-800baef2de83}</value> | 250 | + <value type="QString">{fd24a9a9-cdbc-49b3-845c-b174fda2a7ac}</value> |
250 | </data> | 251 | </data> |
251 | <data> | 252 | <data> |
252 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | 253 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
QChatClient/chatinputtext.cpp
QChatClient/chatroom.cpp
@@ -233,7 +233,6 @@ void Chatroom::relayMsg(string msg) | @@ -233,7 +233,6 @@ void Chatroom::relayMsg(string msg) | ||
233 | 233 | ||
234 | void Chatroom::newChat(QString peerNick) | 234 | void Chatroom::newChat(QString peerNick) |
235 | { | 235 | { |
236 | - cout << "add chat" << endl; | ||
237 | chatMutex.lock(); | 236 | chatMutex.lock(); |
238 | ChatWindow* newchat = new ChatWindow(peerNick,this); | 237 | ChatWindow* newchat = new ChatWindow(peerNick,this); |
239 | activeChats.insert(std::pair<string,ChatWindow*>(peerNick.toStdString(),newchat)); | 238 | activeChats.insert(std::pair<string,ChatWindow*>(peerNick.toStdString(),newchat)); |
@@ -245,7 +244,6 @@ void Chatroom::newChat(QString peerNick) | @@ -245,7 +244,6 @@ void Chatroom::newChat(QString peerNick) | ||
245 | void Chatroom::removeChat(QString &nickname) | 244 | void Chatroom::removeChat(QString &nickname) |
246 | { | 245 | { |
247 | freeChats(false); | 246 | freeChats(false); |
248 | - cout << "move to inactive" << endl; | ||
249 | chatMutex.lock(); | 247 | chatMutex.lock(); |
250 | ChatWindow* chat = (ChatWindow*) activeChats.find(nickname.toStdString())->second; | 248 | ChatWindow* chat = (ChatWindow*) activeChats.find(nickname.toStdString())->second; |
251 | inactiveChats.insert(std::pair<string,ChatWindow*>(nickname.toStdString(),chat)); | 249 | inactiveChats.insert(std::pair<string,ChatWindow*>(nickname.toStdString(),chat)); |
@@ -401,7 +399,6 @@ void Chatroom::freeChats(bool active) | @@ -401,7 +399,6 @@ void Chatroom::freeChats(bool active) | ||
401 | { | 399 | { |
402 | for(it = inactiveChats.begin(); it != inactiveChats.end(); it++) | 400 | for(it = inactiveChats.begin(); it != inactiveChats.end(); it++) |
403 | { | 401 | { |
404 | - cout << "delete from inactive" << endl; | ||
405 | ChatWindow* chat = (ChatWindow*) it->second; | 402 | ChatWindow* chat = (ChatWindow*) it->second; |
406 | delete chat; | 403 | delete chat; |
407 | } | 404 | } |
QChatClient/main.cpp
1 | -#include "loginscreen.h" | ||
2 | #include "chatroom.h" | 1 | #include "chatroom.h" |
3 | #include <QApplication> | 2 | #include <QApplication> |
4 | -#include <signal.h> | ||
5 | -#include <execinfo.h> | ||
6 | - | ||
7 | - | ||
8 | -void handler(int sig) | ||
9 | -{ | ||
10 | - void *array[10]; | ||
11 | - size_t size; | ||
12 | - size = backtrace(array, 10); | ||
13 | - fprintf(stderr, "SEGFAULT\n"); | ||
14 | - backtrace_symbols_fd(array, size, STDERR_FILENO); | ||
15 | - exit(1); | ||
16 | -} | ||
17 | - | ||
18 | 3 | ||
19 | int main(int argc, char *argv[]) | 4 | int main(int argc, char *argv[]) |
20 | { | 5 | { |
build-QChatClient-Desktop-Debug/QChatClient
No preview for this file type
build-QChatClient-Desktop-Debug/main.o
No preview for this file type