aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/irc
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-09-16 20:35:11 +0200
committerRenaud G <renaud@rolisteam.org>2016-09-16 20:35:11 +0200
commit70e09294fca1022d9370fe2fd631a98480c284b2 (patch)
tree4b09bfeed97a10ae19bede3f1c7eafafb2cdfcb0 /irc
parent92e415fa59bb1508bbbd93905dbe225d4202d571 (diff)
downloadOneRoll-70e09294fca1022d9370fe2fd631a98480c284b2.tar.gz
OneRoll-70e09294fca1022d9370fe2fd631a98480c284b2.zip
-Fix some value on diceparser.
Diffstat (limited to 'irc')
-rw-r--r--irc/CMakeLists.txt22
-rw-r--r--irc/botircdiceparser.cpp1
2 files changed, 11 insertions, 12 deletions
diff --git a/irc/CMakeLists.txt b/irc/CMakeLists.txt
index d43ffed..af77dfb 100644
--- a/irc/CMakeLists.txt
+++ b/irc/CMakeLists.txt
@@ -10,23 +10,23 @@ set(CMAKE_AUTOMOC ON)
# Find the QtWidgets library
find_package(Qt5Core)
-find_package(Qt5Gui)
-find_package(Qt5Widgets)
+#fsind_package(Qt5Gui)
+#find_package(Qt5Widgets)
find_package(Qt5Network)
-SET(mainwindow_SOURCES mainwindow.cpp)
-SET(mainwindow_HEADERS mainwindow.h)
-SET(mainwindow_FORMS mainwindow.ui)
+#SET(mainwindow_SOURCES mainwindow.cpp)
+#SET(mainwindow_HEADERS mainwindow.h)
+#SET(mainwindow_FORMS mainwindow.ui)
set(EXECUTABLE_OUTPUT_PATH bin/)
-include_directories(${Qt5Core_INCLUDES} ${Qt5Gui_INCLUDES} ${Qt5Widgets_INCLUDES} ${Qt5Network_INCLUDES} ../)
-add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Gui_DEFINITIONS} ${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS})
+include_directories(${Qt5Core_INCLUDES} ${Qt5Network_INCLUDES} ../)
+add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Network_DEFINITIONS})
-qt5_wrap_ui(UI_HEADERS mainwindow.ui)
-#set(MODE "cli")
+#qt5_wrap_ui(UI_HEADERS mainwindow.ui)
+set(MODE "cli")
ADD_DEFINITIONS(
@@ -68,13 +68,11 @@ add_executable(
../node/sortresult.cpp
../node/startingnode.cpp
../node/ifnode.cpp
- ${UI_HEADERS}
botircdiceparser.cpp
main.cpp)
-target_link_libraries(irc ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES})
+target_link_libraries(irc ${Qt5Core_LIBRARIES} ${Qt5Network_LIBRARIES})
INSTALL_TARGETS(/bin irc)
-
#qt5_use_modules()
diff --git a/irc/botircdiceparser.cpp b/irc/botircdiceparser.cpp
index 87d47ff..eb2e3c1 100644
--- a/irc/botircdiceparser.cpp
+++ b/irc/botircdiceparser.cpp
@@ -37,6 +37,7 @@ BotIrcDiceParser::BotIrcDiceParser(QObject *parent) :
// Connect signals and slots!
connect(m_socket, SIGNAL(readyRead()), this, SLOT(readData()));
connect(m_socket,SIGNAL(connected()),this,SLOT(authentificationProcess()));
+ connect(m_socket,SIGNAL(disconnected()),this,SLOT(connectToServer()));
connect(m_socket,SIGNAL(error(QAbstractSocket::SocketError)),this,SLOT(errorOccurs(QAbstractSocket::SocketError)));
}