forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove dependency of version.h. add runtime version string functions
- Loading branch information
Showing
9 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ int main(int argc, char *argv[]) | |
return 0; | ||
} | ||
renderer.show(); | ||
renderer.setWindowTitle("QtAV " QTAV_VERSION_STR_LONG " [email protected]"); | ||
renderer.setWindowTitle("QtAV " + QtAV_Version_String_Long() + " [email protected]"); | ||
//renderer.resize(800, 600); | ||
QString fileName; | ||
if (argc > 1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,7 @@ int main(int argc, char *argv[]) | |
*/ | ||
GDIRenderer renderer; | ||
renderer.show(); | ||
renderer.setWindowTitle("QtAV " QTAV_VERSION_STR_LONG " [email protected]"); | ||
renderer.setWindowTitle("QtAV " + QtAV_Version_String_Long() + " [email protected]"); | ||
//renderer.resize(800, 600); | ||
QString fileName; | ||
if (argc > 1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,7 @@ int main(int argc, char *argv[]) | |
|
||
GLWidgetRenderer renderer; | ||
renderer.show(); | ||
renderer.setWindowTitle("QtAV " QTAV_VERSION_STR_LONG " [email protected]"); | ||
renderer.setWindowTitle("QtAV " + QtAV_Version_String_Long() + " [email protected]"); | ||
//renderer.resize(800, 600); | ||
QString fileName; | ||
if (argc > 1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,7 @@ int main(int argc, char *argv[]) | |
vo = vo.toLower(); | ||
if (vo != "gl" && vo != "d2d" && vo != "gdi") | ||
vo = "qpainter"; | ||
QString title = "QtAV " + vo + " " QTAV_VERSION_STR_LONG " [email protected]"; | ||
QString title = "QtAV " + vo + " " + QtAV_Version_String_Long() + " [email protected]"; | ||
VideoRenderer *renderer = 0; | ||
if (vo == "gl") { | ||
GLWidgetRenderer *r = static_cast<GLWidgetRenderer*>(VideoRendererFactory::create(VideoRendererId_GLWidget)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ using namespace QtAV; | |
Widget::Widget(QWidget *parent) : | ||
QWidget(parent) | ||
{ | ||
setWindowTitle("A test for [clock controlling]. QtAV" QTAV_VERSION_STR_LONG " [email protected]"); | ||
setWindowTitle("A test for [clock controlling]. QtAV" + QtAV_Version_String_Long() + " [email protected]"); | ||
clock = new AVClock(this); | ||
clock->setClockType(AVClock::ExternalClock); | ||
QVBoxLayout *main_layout = new QVBoxLayout; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ using namespace QtAV; | |
Widget::Widget(QWidget *parent) : | ||
QWidget(parent) | ||
{ | ||
setWindowTitle("A test for shared video renderer. QtAV" QTAV_VERSION_STR_LONG " [email protected]"); | ||
setWindowTitle("A test for shared video renderer. QtAV" + QtAV_Version_String_Long() + " [email protected]"); | ||
QVBoxLayout *main_layout = new QVBoxLayout; | ||
QHBoxLayout *btn_layout = new QHBoxLayout; | ||
renderer = new WidgetRenderer; | ||
|