[PC-BSD Commits] r3104 - pcbsd/trunk/PCInstall
svn at pcbsd.org
svn at pcbsd.org
Thu Dec 18 06:00:12 PST 2008
Author: kris
Date: 2008-12-18 06:00:11 -0800 (Thu, 18 Dec 2008)
New Revision: 3104
Modified:
pcbsd/trunk/PCInstall/pcinstall.cpp
pcbsd/trunk/PCInstall/pcinstall.ui
Log:
Updated the installer to display the set PC-BSD Version number on the initial screen
Modified: pcbsd/trunk/PCInstall/pcinstall.cpp
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.cpp 2008-12-18 13:44:16 UTC (rev 3103)
+++ pcbsd/trunk/PCInstall/pcinstall.cpp 2008-12-18 14:00:11 UTC (rev 3104)
@@ -24,6 +24,23 @@
void PCInstall::ProgramInit()
{
+ // Check the currently running language
+ if ( QFile::exists( "/PCBSDVERSION" ) )
+ {
+ QString Ver;
+
+ QFile file( "/PCBSDVERSION" );
+ if ( file.open( IO_ReadOnly ) ) {
+ QTextStream stream( &file );
+ Ver = stream.readLine(); // line of text excluding '\n'
+ file.close();
+ }
+
+ VersionLabel->setText(Ver);
+ }
+
+
+
// KPM
// Disable the Upgrade radio button for now, until its re-implemented
// With the cloning option down the road
Modified: pcbsd/trunk/PCInstall/pcinstall.ui
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.ui 2008-12-18 13:44:16 UTC (rev 3103)
+++ pcbsd/trunk/PCInstall/pcinstall.ui 2008-12-18 14:00:11 UTC (rev 3104)
@@ -409,7 +409,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel" name="textLabel1_10" >
+ <widget class="QLabel" name="VersionLabel" >
<property name="geometry" >
<rect>
<x>4</x>
More information about the Commits
mailing list