Skip to content

Commit

Permalink
Some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ic005k committed Oct 13, 2024
1 parent ed36197 commit 15ea6dd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/dlgpreference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ void dlgPreference::saveKextUrl() {
void dlgPreference::refreshKextUrl(bool writeTable) {
isRefresh = true;
// strAppExePath app exe path
// mw_one->strConfigPath .ocat path
QString file = mw_one->strConfigPath + "/Database/preset/KextUrl.txt";
// mw_one->strConfigPath .config path
QString file = strAppExePath + "/Database/preset/KextUrl.txt";
ui->textEdit->clear();
ui->textEdit->setPlainText(mymethod->loadText(file));
QTextEdit *txtEdit = new QTextEdit;
Expand Down
79 changes: 43 additions & 36 deletions src/dlgpreference.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>767</width>
<height>544</height>
<height>575</height>
</rect>
</property>
<property name="windowTitle">
Expand All @@ -17,7 +17,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<property name="documentMode">
<bool>true</bool>
Expand Down Expand Up @@ -370,21 +370,27 @@
<string>Kext Upgrade URL</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_3">
<item row="3" column="0">
<widget class="QToolButton" name="btnAdd">
<property name="text">
<string>+</string>
<item row="3" column="6">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
</widget>
<property name="sizeHint" stdset="0">
<size>
<width>458</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="4">
<widget class="QToolButton" name="btnStop">
<item row="3" column="3">
<widget class="QToolButton" name="btnDownloadKexts">
<property name="text">
<string>Stop</string>
<string>Download Kexts to the user database</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="6">
<item row="0" column="0" colspan="7">
<widget class="QTextEdit" name="textEdit">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
Expand All @@ -401,20 +407,14 @@ li.checked::marker { content: &quot;\2612&quot;; }
</property>
</widget>
</item>
<item row="3" column="5">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>458</width>
<height>20</height>
</size>
<item row="3" column="2">
<widget class="QToolButton" name="btnOpenUrl">
<property name="text">
<string>Open URL in browser</string>
</property>
</spacer>
</widget>
</item>
<item row="2" column="0" colspan="6">
<item row="2" column="0" colspan="7">
<widget class="QTableWidget" name="tableKextUrl">
<property name="frameShape">
<enum>QFrame::Shape::NoFrame</enum>
Expand All @@ -434,10 +434,13 @@ li.checked::marker { content: &quot;\2612&quot;; }
</column>
</widget>
</item>
<item row="3" column="2">
<widget class="QToolButton" name="btnOpenUrl">
<property name="text">
<string>Open URL in browser</string>
<item row="1" column="0" colspan="7">
<widget class="QLineEdit" name="myeditFind">
<property name="placeholderText">
<string>Find</string>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</property>
</widget>
</item>
Expand All @@ -448,20 +451,24 @@ li.checked::marker { content: &quot;\2612&quot;; }
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QToolButton" name="btnDownloadKexts">
<item row="3" column="0">
<widget class="QToolButton" name="btnAdd">
<property name="text">
<string>Download Kexts to the user database</string>
<string>+</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="6">
<widget class="QLineEdit" name="myeditFind">
<property name="placeholderText">
<string>Find</string>
<item row="3" column="4">
<widget class="QToolButton" name="btnStop">
<property name="text">
<string>Stop</string>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</widget>
</item>
<item row="3" column="5">
<widget class="QLabel" name="lblPath">
<property name="text">
<string>~\.config\OCAuxiliaryTools\KextUrl.txt</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 15ea6dd

Please sign in to comment.