Prepared to move for dbus implementation

git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@77 cac9541e-1b8d-4bfa-827e-589bba606050
This commit is contained in:
ruglory
2009-02-22 05:31:38 +00:00
parent 2732500e95
commit 737b94e463
10 changed files with 123 additions and 379 deletions
+2 -6
View File
@@ -58,7 +58,7 @@ int main( int argc, char **argv )
QStringList files;
QCDScene::QString2String replacements;
int driveIndex = 0;
QLightScribe::PrintParameters params;
PrintParameters params;
bool labelModeOverriden = false;
for( int i = 1; i < arguments.size(); ++i ) {
@@ -153,7 +153,7 @@ int main( int argc, char **argv )
}
QConsolePrintProgress progress;
std::cout << "Printing label " << files.front() << std::endl;
scribe->print( drives[driveIndex], params, &scene );
drives[driveIndex]->print( params, &scene );
rez = app.exec();
} else {
MainWindow mwindow( enablePrint );
@@ -161,9 +161,5 @@ int main( int argc, char **argv )
mwindow.open( files );
rez = app.exec();
}
QLightScribe *scribe = QLightScribe::instance();
scribe->stopThread();
scribe->wait( 1000 );
return rez;
}