Skip to content

Commit

Permalink
Update currencyconvertermainwindow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
talha1230 committed Jan 7, 2024
1 parent 21f20e2 commit da60a20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions currencyconvertermainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ CurrencyConverterMainWindow::CurrencyConverterMainWindow(QWidget *parent) :

// Initialize and populate the currency combo box
QStringList currencyList = {"USD", "EUR", "GBP", "JPY"}; // Add more currencies as needed
QStringList desiredCurrency = {"MYR", "PKR"};
ui->currencyComboBox->addItems(currencyList);
ui->desiredCurrencyComboBox->addItems(desiredCurrency);


// Connect the combo box selection change signal to the appropriate slot
connect(ui->currencyComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &CurrencyConverterMainWindow::onCurrencySelectionChanged);
Expand Down

0 comments on commit da60a20

Please sign in to comment.