Skip to content

Commit

Permalink
add style to qucs tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dsm committed Dec 4, 2024
1 parent 93f4e76 commit 8fd1352
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions qucs/qucs_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,19 +841,22 @@ void QucsApp::slotCallEditor()
// Is called to start the filter synthesis program.
void QucsApp::slotCallFilter()
{
launchTool(QUCS_NAME "filter", "filter synthesis");
auto currentStyle = QApplication::style()->objectName();
launchTool(QUCS_NAME "filter", "filter synthesis",(QStringList() << "-style" << currentStyle));
}

void QucsApp::slotCallActiveFilter()
{
launchTool(QUCS_NAME "activefilter", "active filter synthesis");
auto currentStyle = QApplication::style()->objectName();
launchTool(QUCS_NAME "activefilter", "active filter synthesis",(QStringList() << "-style" << currentStyle));
}

// ------------------------------------------------------------------------
// Is called to start the transmission line calculation program.
void QucsApp::slotCallLine()
{
launchTool(QUCS_NAME "trans", "line calculation",QStringList());
auto currentStyle = QApplication::style()->objectName();
launchTool(QUCS_NAME "trans", "line calculation",(QStringList() << "-style" << currentStyle));
}

// --------------------------------------------------------------
Expand All @@ -868,17 +871,20 @@ void QucsApp::slotCallMatch()
// Is called to start the attenuator calculation program.
void QucsApp::slotCallAtt()
{
launchTool(QUCS_NAME "attenuator", "attenuator calculation",QStringList());
auto currentStyle = QApplication::style()->objectName();
launchTool(QUCS_NAME "attenuator", "attenuator calculation",(QStringList() << "-style" << currentStyle));
}

void QucsApp::slotCallPwrComb()
{
launchTool(QUCS_NAME "powercombining", "power combining calculation",QStringList());
auto currentStyle = QApplication::style()->objectName();
launchTool(QUCS_NAME "powercombining", "power combining calculation",(QStringList() << "-style" << currentStyle));
}

void QucsApp::slotCallSPAR_Viewer()
{
launchTool(QUCS_NAME "spar-viewer", "s-parameter viewer",QStringList());
auto currentStyle = QApplication::style()->objectName();
launchTool(QUCS_NAME "spar-viewer", "s-parameter viewer",(QStringList() << "-style" << currentStyle));
}


Expand Down

0 comments on commit 8fd1352

Please sign in to comment.