Removed unused features

This commit is contained in:
Valentino Orlandi 2022-11-07 21:29:15 +01:00
parent a72befca45
commit 4db847d008
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
2 changed files with 9 additions and 8 deletions

View File

@ -24,10 +24,10 @@ const std::unordered_map<std::string, QString>& TextBrowser::getColorScheme()
return this->color_scheme;
}
const int& TextBrowser::getFontSize()
/*const int& TextBrowser::getFontSize()
{
return this->font_size;
}
}*/
const QString& TextBrowser::getFontFamily()
{
@ -52,7 +52,7 @@ void TextBrowser::setColorScheme( const int& color_scheme_id, const std::unorder
this->color_scheme = color_scheme;
}
void TextBrowser::setFontSize( const int& font_size )
/*void TextBrowser::setFontSize( const int& font_size )
{
this->font_size = font_size;
}
@ -60,11 +60,12 @@ void TextBrowser::setFontSize( const int& font_size )
void TextBrowser::setFontFamily( const QString& font_family )
{
this->font_family = font_family;
}
}*/
void TextBrowser::setFont( const QFont& font )
{
this->font = font;
this->font_family = font.family();
}

View File

@ -16,15 +16,15 @@ public:
const bool& getWideLinesUsage();
const int& getColorSchemeID();
const std::unordered_map<std::string, QString>& getColorScheme();
const int& getFontSize();
/*const int& getFontSize();*/
const QString& getFontFamily();
const QFont& getFont();
// setters
void setWideLinesUsage( const bool& use_wide_lines );
void setColorScheme( const int& color_scheme_id, const std::unordered_map<std::string, QString>& color_scheme );
void setFontSize( const int& font_size );
void setFontFamily( const QString& font_family );
/*void setFontSize( const int& font_size );
void setFontFamily( const QString& font_family );*/
void setFont( const QFont& font );
// preview
@ -34,7 +34,7 @@ private:
bool wide_lines = false;
int color_scheme_id = 1;
std::unordered_map<std::string, QString> color_scheme;
int font_size = 13;
/*int font_size = 13;*/
QString font_family;
QFont font;
};