Remove deprecated function
This commit is contained in:
@@ -130,12 +130,7 @@ public:
|
||||
<< std::setw(2) << int(b*255.0f);
|
||||
return ss.str();
|
||||
}
|
||||
/**
|
||||
* \deprecated
|
||||
*/
|
||||
std::string asCSSString() const {
|
||||
return asHexString();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets color from hex color "#RRGGBB"
|
||||
*
|
||||
|
||||
@@ -110,7 +110,7 @@ App::DocumentObjectExecReturn *DrawViewDraft::execute(void)
|
||||
// TODO treat fillstyle here
|
||||
<< ",direction=FreeCAD.Vector(" << Direction.getValue().x << "," << Direction.getValue().y << "," << Direction.getValue().z << ")"
|
||||
<< ",linestyle=\"" << LineStyle.getValue() << "\""
|
||||
<< ",color=\"" << col.asCSSString() << "\""
|
||||
<< ",color=\"" << col.asHexString() << "\""
|
||||
<< ",linespacing=" << LineSpacing.getValue()
|
||||
// We must set techdraw to "true" becausea couple of things behave differently than in Drawing
|
||||
<< ",techdraw=True"
|
||||
|
||||
@@ -301,17 +301,17 @@ std::string DrawViewSpreadsheet::getSheetImage(void)
|
||||
// get colors, style, alignment and span
|
||||
int alignment = 0;
|
||||
std::string bcolor = "none";
|
||||
std::string fcolor = c.asCSSString();
|
||||
std::string fcolor = c.asHexString();
|
||||
std::string textstyle = "";
|
||||
if (cell) {
|
||||
App::Color f,b;
|
||||
std::set<std::string> st;
|
||||
int colspan, rowspan;
|
||||
if (cell->getBackground(b)) {
|
||||
bcolor = b.asCSSString();
|
||||
bcolor = b.asHexString();
|
||||
}
|
||||
if (cell->getForeground(f)) {
|
||||
fcolor = f.asCSSString();
|
||||
fcolor = f.asHexString();
|
||||
}
|
||||
if (cell->getStyle(st)) {
|
||||
for (std::set<std::string>::const_iterator i = st.begin(); i != st.end(); ++i) {
|
||||
@@ -342,7 +342,7 @@ std::string DrawViewSpreadsheet::getSheetImage(void)
|
||||
if (std::find(skiplist.begin(), skiplist.end(), address.toString()) == skiplist.end()) {
|
||||
result << " <rect x=\"" << coloffset << "\" y=\"" << rowoffset << "\" width=\"" << cellwidth
|
||||
<< "\" height=\"" << cellheight << "\" style=\"fill:" << bcolor << ";stroke-width:"
|
||||
<< LineWidth.getValue()/getScale() << ";stroke:" << c.asCSSString() << ";\" />" << endl;
|
||||
<< LineWidth.getValue()/getScale() << ";stroke:" << c.asHexString() << ";\" />" << endl;
|
||||
if (alignment & Spreadsheet::Cell::ALIGNMENT_LEFT)
|
||||
result << " <text style=\"" << textstyle << "\" x=\"" << coloffset + TextSize.getValue()/2 << "\" y=\"" << rowoffset + 0.75 * cellheight << "\" font-family=\"" ;
|
||||
if (alignment & Spreadsheet::Cell::ALIGNMENT_HCENTER)
|
||||
|
||||
@@ -670,7 +670,7 @@ QPixmap QGIFace::textureFromSvg(std::string fileSpec)
|
||||
|
||||
void QGIFace::setHatchColor(App::Color c)
|
||||
{
|
||||
m_svgCol = c.asCSSString();
|
||||
m_svgCol = c.asHexString();
|
||||
m_geomColor = c.asValue<QColor>();
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ void QGIViewAnnotation::drawAnnotation()
|
||||
}
|
||||
ss << "line-height:" << viewAnno->LineSpace.getValue() << "%; ";
|
||||
App::Color c = viewAnno->TextColor.getValue();
|
||||
ss << "color:" << c.asCSSString() << "; ";
|
||||
ss << "color:" << c.asHexString() << "; ";
|
||||
ss << "}\n</style>\n</head>\n<body>\n<p>";
|
||||
for(std::vector<std::string>::const_iterator it = annoText.begin(); it != annoText.end(); it++) {
|
||||
if (it != annoText.begin()) {
|
||||
|
||||
Reference in New Issue
Block a user