File tree Expand file tree Collapse file tree
plugins/SkyCultureMaker/src/gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,17 +87,6 @@ void ScmConstellationDialog::loadFromConstellation(scm::ScmConstellation *conste
8787 constellation->hide ();
8888 // Load the coordinates and stars to ScmDraw
8989 maker->getScmDraw ()->loadLines (constellation->getCoordinates (), constellation->getStars ());
90-
91- // WTF???
92- // Set up artwork tab
93- // imageItem->setAnchors(constellation->getArtwork().getAnchors());
94- // QPixmap image = QPixmap("");
95- // imageItem->setImage(image);
96- // imageItem->show();
97- // ui->artwork_image->centerOn(imageItem);
98- // ui->artwork_image->fitInView(imageItem, Qt::KeepAspectRatio);
99- // ui->artwork_image->show();
100- // updateArtwork();
10190}
10291
10392void ScmConstellationDialog::retranslate ()
Original file line number Diff line number Diff line change @@ -116,20 +116,6 @@ const std::vector<ScmImageAnchor> &ScmImageAnchored::getAnchors() const
116116 return anchorItems;
117117}
118118
119- void ScmImageAnchored::setAnchors (const std::array<scm::Anchor, 3 > &anchors)
120- {
121- for (size_t i = 0 ; i < anchorItems.size (); ++i)
122- {
123- const auto &anchor = anchors[i];
124- anchorItems[i].setPosDiameter (anchor.position [0 ], anchor.position [1 ],
125- anchorItems[i].boundingRect ().width ());
126- anchorItems[i].setStarHip (anchor.hip );
127- anchorItems[i].setStarNameI18n (" " );
128- }
129-
130- updateAnchors ();
131- }
132-
133119bool ScmImageAnchored::isImageAnchored ()
134120{
135121 for (const auto &anchor : anchorItems)
Original file line number Diff line number Diff line change 2727#include " ScmConstellationArtwork.hpp"
2828#include " ScmImageAnchor.hpp"
2929#include " types/Anchor.hpp"
30- #include < array>
3130#include < functional>
3231#include < vector>
3332#include < QGraphicsPathItem>
@@ -84,13 +83,6 @@ class ScmImageAnchored : public QGraphicsPixmapItem
8483 */
8584 const std::vector<ScmImageAnchor> &getAnchors () const ;
8685
87- /* *
88- * @brief Sets the anchors of this object.
89- *
90- * @param anchors The anchors to set.
91- */
92- void setAnchors (const std::array<scm::Anchor, 3 > &anchors);
93-
9486 /* *
9587 * @brief Indicates if all anchors have a star they are bound too.
9688 *
You can’t perform that action at this time.
0 commit comments