mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:36:43 +00:00
[Feature #881] Change Tabs to Spaces
Some of the tabs were not made of spaces, so Git defaults tabs to the length of 8 spaces. OpenMW uses 4 spaces per tab.
This commit is contained in:
parent
51652047d0
commit
784cba21f2
1 changed files with 16 additions and 16 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
CS::Editor::Editor() : mViewManager (mDocumentManager)
|
CS::Editor::Editor() : mViewManager (mDocumentManager)
|
||||||
{
|
{
|
||||||
mIpcServerName = "org.openmw.OpenCS";
|
mIpcServerName = "org.openmw.OpenCS";
|
||||||
|
|
||||||
connect (&mViewManager, SIGNAL (newDocumentRequest ()), this, SLOT (createDocument ()));
|
connect (&mViewManager, SIGNAL (newDocumentRequest ()), this, SLOT (createDocument ()));
|
||||||
connect (&mViewManager, SIGNAL (loadDocumentRequest ()), this, SLOT (loadDocument ()));
|
connect (&mViewManager, SIGNAL (loadDocumentRequest ()), this, SLOT (loadDocument ()));
|
||||||
|
@ -120,31 +120,31 @@ void CS::Editor::createNewFile()
|
||||||
|
|
||||||
void CS::Editor::showStartup()
|
void CS::Editor::showStartup()
|
||||||
{
|
{
|
||||||
if(mStartup.isHidden())
|
if(mStartup.isHidden())
|
||||||
mStartup.show();
|
mStartup.show();
|
||||||
mStartup.raise();
|
mStartup.raise();
|
||||||
mStartup.activateWindow();
|
mStartup.activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CS::Editor::makeIPCServer()
|
bool CS::Editor::makeIPCServer()
|
||||||
{
|
{
|
||||||
mServer = new QLocalServer(this);
|
mServer = new QLocalServer(this);
|
||||||
|
|
||||||
if(mServer->listen(mIpcServerName))
|
if(mServer->listen(mIpcServerName))
|
||||||
{
|
{
|
||||||
connect(mServer, SIGNAL(newConnection()), this, SLOT(showStartup()));
|
connect(mServer, SIGNAL(newConnection()), this, SLOT(showStartup()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
mServer->close();
|
mServer->close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CS::Editor::connectToIPCServer()
|
void CS::Editor::connectToIPCServer()
|
||||||
{
|
{
|
||||||
mClientSocket = new QLocalSocket(this);
|
mClientSocket = new QLocalSocket(this);
|
||||||
mClientSocket->connectToServer(mIpcServerName);
|
mClientSocket->connectToServer(mIpcServerName);
|
||||||
mClientSocket->close();
|
mClientSocket->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CS::Editor::run()
|
int CS::Editor::run()
|
||||||
|
|
Loading…
Reference in a new issue