diff --git a/ffsengine.cpp b/ffsengine.cpp
index 6d1e2c9..1f36654 100644
--- a/ffsengine.cpp
+++ b/ffsengine.cpp
@@ -1462,12 +1462,11 @@ UINT8 FfsEngine::parseSection(const QByteArray & section, QModelIndex & index, c
// Get info for it
QString signatureInfo = tr("Size: 0x%1").hexarg(signature.size(), 8);
// Add it to the tree
- QModelIndex signatureIndex = model->addItem(Types::Padding, Subtypes::DataPadding, COMPRESSION_ALGORITHM_NONE, tr("Padding"), tr("Intel signature"), signatureInfo, QByteArray(), signature, QByteArray(), index, mode);
+ model->addItem(Types::Padding, Subtypes::DataPadding, COMPRESSION_ALGORITHM_NONE, tr("Padding"), tr("Intel signature"), signatureInfo, QByteArray(), signature, QByteArray(), index, mode);
// Get internal lzma section data
QByteArray lzmaSection = body.mid(signature.size());
- // Parse internal section
- QModelIndex lzmaSectionIndex;
+ // Parse internal sections
result = parseSections(lzmaSection, index);
if (result)
return result;
diff --git a/searchdialog.ui b/searchdialog.ui
index c1e2f56..6442853 100644
--- a/searchdialog.ui
+++ b/searchdialog.ui
@@ -7,7 +7,7 @@
0
0
400
- 214
+ 237
@@ -36,12 +36,6 @@
-
-
-
- Consolas
- 9
-
-
@@ -53,12 +47,6 @@
Search scope
-
- 6
-
-
- 9
-
-
@@ -102,14 +90,8 @@
-
-
-
- Consolas
- 9
-
-
- xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;
+ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
........-....-....-....-............
@@ -122,12 +104,6 @@
Search scope
-
- 6
-
-
- 9
-
-
diff --git a/uefitool.cpp b/uefitool.cpp
index f156204..a99152d 100644
--- a/uefitool.cpp
+++ b/uefitool.cpp
@@ -56,6 +56,19 @@ version(tr("0.19.2"))
// Set current directory
currentDir = ".";
+ // Set monospace font for some controls
+ QFont font("Courier New", 10);
+#if defined Q_OS_OSX
+ font = QFont("Menlo", 10);
+#elif defined Q_OS_WIN
+ font = QFont("Consolas", 9);
+#endif
+ ui->infoEdit->setFont(font);
+ ui->messageListWidget->setFont(font);
+ ui->structureTreeView->setFont(font);
+ searchDialog->ui->guidEdit->setFont(font);
+ searchDialog->ui->hexEdit->setFont(font);
+
// Initialize non-persistent data
init();
diff --git a/uefitool.ui b/uefitool.ui
index 3e92815..d5bd011 100644
--- a/uefitool.ui
+++ b/uefitool.ui
@@ -33,7 +33,16 @@
0
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -53,7 +62,16 @@
0
-
+
+ 5
+
+
+ 5
+
+
+ 5
+
+
5
-
@@ -64,12 +82,6 @@
0
-
-
- Consolas
- 9
-
-
10
@@ -97,17 +109,20 @@
0
-
+
+ 5
+
+
+ 5
+
+
+ 5
+
+
5
-
-
-
- Consolas
- 9
-
-
false
@@ -133,17 +148,20 @@
0
-
+
+ 5
+
+
+ 5
+
+
+ 5
+
+
5
-
-
-
- Consolas
- 9
-
-
true
@@ -162,7 +180,7 @@
0
0
800
- 21
+ 22