Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

cosmetic fixes

tilakpatel22c06c4fdfb7b2
diff --git a/fincept-qt/src/screens/excel/ExcelScreen.cpp b/fincept-qt/src/screens/excel/ExcelScreen.cpp
index 6d27bb271..6739c59a2 100644
--- a/fincept-qt/src/screens/excel/ExcelScreen.cpp
+++ b/fincept-qt/src/screens/excel/ExcelScreen.cpp
@@ -17,7 +17,7 @@
#include <QVBoxLayout>
#ifdef FINCEPT_HAS_QXLSX
-# include <xlsxdocument.h>
+#include <xlsxdocument.h>
#endif
namespace fincept::screens {
@@ -111,8 +111,7 @@ void ExcelScreen::build_ui() {
QWidget* ExcelScreen::build_toolbar() {
auto* bar = new QWidget(this);
bar->setFixedHeight(40);
- bar->setStyleSheet(
- QString("background:%1; border-bottom:1px solid %2;").arg(colors::BORDER_MED(), colors::TEXT_DIM()));
+ bar->setStyleSheet(QString("background:%1; border-bottom:1px solid %2;").arg(colors::BORDER_MED(), colors::TEXT_DIM()));
auto* hl = new QHBoxLayout(bar);
hl->setContentsMargins(12, 0, 12, 0);
@@ -128,12 +127,12 @@ QWidget* ExcelScreen::build_toolbar() {
auto make_btn = [&](const QString& text, const QString& tooltip = {}) -> QPushButton* {
auto* btn = new QPushButton(text, bar);
btn->setToolTip(tooltip);
- btn->setStyleSheet(QString("QPushButton { background:%3; color:%4; border:none;"
- " font-family:%1; font-size:10px; font-weight:600; padding:6px 12px; }"
- "QPushButton:hover { background:%5; }"
- "QPushButton:pressed { background:%2; }")
- .arg(fonts::DATA_FAMILY, kAccent(), colors::TEXT_DIM(), colors::TEXT_PRIMARY(),
- colors::TEXT_TERTIARY()));
+ btn->setStyleSheet(
+ QString("QPushButton { background:%3; color:%4; border:none;"
+ " font-family:%1; font-size:10px; font-weight:600; padding:6px 12px; }"
+ "QPushButton:hover { background:%5; }"
+ "QPushButton:pressed { background:%2; }")
+ .arg(fonts::DATA_FAMILY, kAccent(), colors::TEXT_DIM(), colors::TEXT_PRIMARY(), colors::TEXT_TERTIARY()));
return btn;
};
@@ -164,11 +163,10 @@ QWidget* ExcelScreen::build_toolbar() {
hl->addWidget(rename_btn);
auto* del_btn = make_btn("DELETE", "Delete current sheet");
- del_btn->setStyleSheet(
- QString("QPushButton { background:%2; color:%3; border:none;"
- " font-family:%1; font-size:10px; font-weight:600; padding:6px 12px; }"
- "QPushButton:hover { background:%4; }")
- .arg(fonts::DATA_FAMILY, colors::TEXT_DIM(), colors::TEXT_PRIMARY(), colors::NEGATIVE()));
+ del_btn->setStyleSheet(QString("QPushButton { background:%2; color:%3; border:none;"
+ " font-family:%1; font-size:10px; font-weight:600; padding:6px 12px; }"
+ "QPushButton:hover { background:%4; }")
+ .arg(fonts::DATA_FAMILY, colors::TEXT_DIM(), colors::TEXT_PRIMARY(), colors::NEGATIVE()));
connect(del_btn, &QPushButton::clicked, this, &ExcelScreen::on_delete_sheet);
hl->addWidget(del_btn);
@@ -247,9 +245,9 @@ void ExcelScreen::on_import() {
services::FileManagerService::instance().import_file(path, "excel");
#else
QMessageBox::information(this, "Excel Import",
- "Excel (.xlsx) import requires Qt6 private headers.\n"
- "This build was compiled without QXlsx support.\n\n"
- "CSV files can still be imported via the toolbar.");
+ "Excel (.xlsx) import requires Qt6 private headers.\n"
+ "This build was compiled without QXlsx support.\n\n"
+ "CSV files can still be imported via the toolbar.");
#endif
}
@@ -314,9 +312,9 @@ void ExcelScreen::on_export() {
}
#else
QMessageBox::information(this, "Excel Export",
- "Excel (.xlsx) export requires Qt6 private headers.\n"
- "This build was compiled without QXlsx support.\n\n"
- "CSV export is still available via the toolbar.");
+ "Excel (.xlsx) export requires Qt6 private headers.\n"
+ "This build was compiled without QXlsx support.\n\n"
+ "CSV export is still available via the toolbar.");
#endif
}