@@ -1,6 +1,6 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by QtCreator 2.8.0, 2013-10-0 |
|
3 | <!-- Written by QtCreator 2.8.0, 2013-10-03T07:18:57. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -780,25 +780,19 void TMStatistics::logPackets( int state | |||||
780 | } |
|
780 | } | |
781 | } |
|
781 | } | |
782 |
|
782 | |||
783 | void TMStatistics::readSettings() |
|
|||
784 | { |
|
|||
785 | QSettings settings("lpp", "lfrsgse"); |
|
|||
786 | defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString(); |
|
|||
787 | label_currentDir->setText(defaultStorageDirectory); |
|
|||
788 | } |
|
|||
789 |
|
||||
790 | void TMStatistics::writeSettings() |
|
|||
791 | { |
|
|||
792 | QSettings settings("lpp", "lfrsgse"); |
|
|||
793 | settings.setValue("defaultStorageDirectory", defaultStorageDirectory); |
|
|||
794 | } |
|
|||
795 |
|
||||
796 | void TMStatistics::chooseDir() |
|
783 | void TMStatistics::chooseDir() | |
797 | { |
|
784 | { | |
798 | defaultStorageDirectory = QFileDialog::getExistingDirectory(this, |
|
785 | QString tmpDefaultStorageDirectory; | |
|
786 | tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this, | |||
799 | "choose the directory", |
|
787 | "choose the directory", | |
800 | QDir::homePath(), |
|
788 | QDir::homePath(), | |
801 | QFileDialog::ShowDirsOnly); |
|
789 | QFileDialog::ShowDirsOnly); | |
|
790 | ||||
|
791 | if( !tmpDefaultStorageDirectory.isEmpty() ) | |||
|
792 | { | |||
|
793 | defaultStorageDirectory = tmpDefaultStorageDirectory; | |||
|
794 | } | |||
|
795 | ||||
802 | label_currentDir->setText(defaultStorageDirectory); |
|
796 | label_currentDir->setText(defaultStorageDirectory); | |
803 | } |
|
797 | } | |
804 |
|
798 | |||
@@ -872,3 +866,16 QString TMStatistics::getPacketName(unsi | |||||
872 |
|
866 | |||
873 | return packetName; |
|
867 | return packetName; | |
874 | } |
|
868 | } | |
|
869 | ||||
|
870 | void TMStatistics::readSettings() | |||
|
871 | { | |||
|
872 | QSettings settings("lpp", "lfrsgse"); | |||
|
873 | defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString(); | |||
|
874 | label_currentDir->setText(defaultStorageDirectory); | |||
|
875 | } | |||
|
876 | ||||
|
877 | void TMStatistics::writeSettings() | |||
|
878 | { | |||
|
879 | QSettings settings("lpp", "lfrsgse"); | |||
|
880 | settings.setValue("defaultStorageDirectory", defaultStorageDirectory); | |||
|
881 | } |
General Comments 0
You need to be logged in to leave comments.
Login now