Removed unused features
This commit is contained in:
parent
a72befca45
commit
4db847d008
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue