Made a list model for displaying them in a list. Also added controles to edit the most important properties.
35 lines
842 B
C++
35 lines
842 B
C++
//#include "mainwindow.h"
|
|
//#include "databasewindow.h"
|
|
#include "connectionmanagerwindow.h"
|
|
#include <QApplication>
|
|
#include <winsock2.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
|
|
/* Use the MAKEWORD(lowbyte, highbyte) macro declared in Windef.h */
|
|
WORD wVersionRequested = MAKEWORD(2, 2);
|
|
WSADATA wsaData;
|
|
int err = WSAStartup(wVersionRequested, &wsaData);
|
|
if (err != 0) {
|
|
/* Tell the user that we could not find a usable */
|
|
/* Winsock DLL. */
|
|
printf("WSAStartup failed with error: %d\n", err);
|
|
return 1;
|
|
}
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
QCoreApplication::setOrganizationName("MySoft");
|
|
QCoreApplication::setOrganizationDomain("eelkeklein.nl");
|
|
QCoreApplication::setApplicationName("Ivory");
|
|
|
|
ConnectionManagerWindow w;
|
|
w.show();
|
|
|
|
int result = a.exec();
|
|
|
|
WSACleanup();
|
|
|
|
return result;
|
|
}
|