"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dialogs/WelcomeDialog.cpp" between
cutter-1.10.2.tar.gz and cutter-1.10.3.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

WelcomeDialog.cpp  (cutter-1.10.2):WelcomeDialog.cpp  (cutter-1.10.3)
skipping to change at line 40 skipping to change at line 40
curr = curr.at(0).toUpper() + curr.right(curr.length() - 1); curr = curr.at(0).toUpper() + curr.right(curr.length() - 1);
if (!langs.contains(curr)) { if (!langs.contains(curr)) {
curr = "English"; curr = "English";
} }
ui->languageComboBox->setCurrentText(curr); ui->languageComboBox->setCurrentText(curr);
connect(ui->languageComboBox, connect(ui->languageComboBox,
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChange d), static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChange d),
this, this,
&WelcomeDialog::onLanguageComboBox_currentIndexChanged); &WelcomeDialog::onLanguageComboBox_currentIndexChanged);
Config()->adjustColorThemeDarkness();
} }
/** /**
* @brief Destroys the WelcomeDialog * @brief Destroys the WelcomeDialog
*/ */
WelcomeDialog::~WelcomeDialog() WelcomeDialog::~WelcomeDialog()
{ {
delete ui; delete ui;
} }
/** /**
* @brief change Cutter's QT Theme as selected by the user * @brief change Cutter's QT Theme as selected by the user
* @param index - a Slot being called after theme's value changes its index * @param index - a Slot being called after theme's value changes its index
*/ */
void WelcomeDialog::on_themeComboBox_currentIndexChanged(int index) void WelcomeDialog::on_themeComboBox_currentIndexChanged(int index)
{ {
Config()->setInterfaceTheme(index); Config()->setInterfaceTheme(index);
// use "ayu" as the default color theme for dark interface
if (Config()->windowColorIsDark()) {
Config()->setColorTheme("ayu");
}
// make sure that Cutter's logo changes its color according to the selected theme // make sure that Cutter's logo changes its color according to the selected theme
ui->logoSvgWidget->load(Config()->getLogoFile()); ui->logoSvgWidget->load(Config()->getLogoFile());
} }
/** /**
* @brief change Cutter's interface language as selected by the user * @brief change Cutter's interface language as selected by the user
* @param index - a Slot being called after language combo box value changes its index * @param index - a Slot being called after language combo box value changes its index
*/ */
void WelcomeDialog::onLanguageComboBox_currentIndexChanged(int index) void WelcomeDialog::onLanguageComboBox_currentIndexChanged(int index)
{ {
 End of changes. 2 change blocks. 
5 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)