mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
try
This commit is contained in:
parent
53c84c5dff
commit
1bbc67a4ff
15
main.cpp
15
main.cpp
@ -52,12 +52,15 @@
|
||||
#include <qapplication.h>
|
||||
#include <qtranslator.h>
|
||||
#include <qtextcodec.h>
|
||||
#include <qdir.h>
|
||||
#include <qstring.h>
|
||||
#include "MainWindow.h"
|
||||
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
QApplication a( argc, argv );
|
||||
QString path = "";
|
||||
QApplication a( argc, argv );
|
||||
MainWindow mw( NULL, "Main Widget");
|
||||
mw.setCaption("X Certification Authority");
|
||||
a.setMainWidget( &mw );
|
||||
@ -67,8 +70,14 @@ int main( int argc, char *argv[] )
|
||||
a.installTranslator( &qtTr );
|
||||
//translation file for application strings
|
||||
QTranslator xcaTr( 0 );
|
||||
xcaTr.load( QString( "xca_" ) + QTextCodec::locale(), PREFIX );
|
||||
a.installTranslator( &xcaTr );
|
||||
#ifdef HAVE_CONFIG_H
|
||||
xcaTr.load( QString( "xca_" ) + QTextCodec::locale(), PREFIX );
|
||||
#else
|
||||
path = "C:";
|
||||
path += QDir::separator();
|
||||
xcaTr.load( QString( "xca_" ) + QTextCodec::locale(), path + BASE_DIR );
|
||||
#endif
|
||||
a.installTranslator( &xcaTr );
|
||||
|
||||
mw.show();
|
||||
return a.exec();
|
||||
|
||||
3
xca.dsp
3
xca.dsp
@ -63,6 +63,7 @@ LINK32=link.exe
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD CPP /nologo /W3 /Gm /Zi /Od /I "$(QTDIR)\include" /I "$(QTDIR)\mkspecs\win32-msvc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "UNICODE" /D "QT_DLL" /D "QT_THREAD_SUPPORT" /FD /GZ -Zm200 /c
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
@ -72,7 +73,7 @@ BSC32=bscmake.exe
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 /machine:IX86
|
||||
# ADD LINK32 $(QTDIR)\lib\qteval304.lib $(QTDIR)\lib\qtmain.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib /nologo /subsystem:windows /incremental:no /debug /machine:IX86 /pdbtype:sept
|
||||
# ADD LINK32 $(QTDIR)\lib\qt-mteval304.lib $(QTDIR)\lib\qtmain.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib winspool.lib SSLeay32.lib libeay32.lib libdb40d.lib /nologo /subsystem:windows /incremental:no /debug /machine:IX86 /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user